1.0.0 • Published 1 year 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-componentImport
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 shortNameDisqus shortname Yes urlURL of the content Yes identifierThe content's identifier Yes titleThe content's title No undefined
1.0.0
1 year ago