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
main.js
2. Register the addon in 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"
}},
}