1.0.0 • Published 11 months ago
svelte-disqus-component v1.0.0
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
1.0.0
11 months ago