svelte-disqus-component
v1.0.0
Published
Integrate Disqus Component for Svelte app. Comments and Count supported.
Downloads
7
Maintainers
Readme
Svelte Disqus Component
This package is for integrating Disqus to Svelte application.
How to
Install
npm install svelte-disqus-component // or yarn add svelte-disqus-component
Import
import DisqusComment from 'svelte-disqus-component/src/DisqusComment.svelte'; import DisqusCount from 'svelte-disqus-component/src/DisqusCount.svelte';
Use it
<script> const shortName = 'disqus-shortname' const url = 'https://some-url' const id = 'some-id' const title = 'The Title' </script> <DisqusComment {shortName} {url} identifier={id} {title}/> <DisqusCount {shortName} />
Props
| Name | Description | Required | Default |
|---|---|---|---|
| shortName
| Disqus shortname | Yes | |
| url
| URL of the content | Yes | |
| identifier
| The content's identifier | Yes | |
| title
| The content's title | No | undefined
|