storybook-addon-disqus
TypeScript icon, indicating that this package has built-in type declarations

0.0.2--canary.61aa48a.0 • Public • Published

storybook-addon-disqus

A Storybook addon that embed a Disqus panel in stories for a quick and easy commenting solution.

Requirements

  • Storybook@>=6.0.0

This addon should work well with any framework: If you find the case the addon not works, please open an issue.

Getting started

1. Install

npm install --save-dev storybook-addon-disqus
# yarn add -D storybook-addon-designs

2. Register the addon in main.js

module.exports = {
  addons: ["storybook-addon-disqus"],
};

3. Add it to a story!

export default {
  title: 'My stories',
  component: Button,
  parameters: {
    disqus: {
      projectId: "Your Disqus project ID"
    }
  },
}

export const myStory = () => <Button>Hello, World!</Button>

myStory.parameters = {
  disqus: {
    projectId: "Your Disqus project ID"
  }},
}

Readme

Keywords

Package Sidebar

Install

npm i storybook-addon-disqus

Weekly Downloads

7

Version

0.0.2--canary.61aa48a.0

License

MIT

Unpacked Size

29.5 kB

Total Files

22

Last publish

Collaborators

  • makerx-engineering
  • patrick.dinh
  • plebsori
  • makerxuser