1.0.0 • Published 11 months ago

svelte-disqus-component v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Svelte Disqus Component

This package is for integrating Disqus to Svelte application.

How to

  1. Install

    npm install svelte-disqus-component
    // or
    yarn add svelte-disqus-component
  2. Import

    import DisqusComment from 'svelte-disqus-component/src/DisqusComment.svelte';
    import DisqusCount from 'svelte-disqus-component/src/DisqusCount.svelte';
  3. 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} />
  4. Props

    NameDescriptionRequiredDefault
    shortNameDisqus shortnameYes
    urlURL of the contentYes
    identifierThe content's identifierYes
    titleThe content's titleNoundefined
1.0.0

11 months ago