A Storybook addon that embed Figma or websites in the addon panel for better design-development workflow.
- Storybook@>=5.0.0
This addon should work well with any framework: If you find the case the addon not works, please open an issue.
npm install --save-dev storybook-addon-designs@alpha
# yarn add -D storybook-addon-designs@alpha
// .storybook/main.js
module.exports = {
addons: ['storybook-addon-designs'],
}
import { withDesign } from 'storybook-addon-designs'
export default {
title: 'My stories',
component: Button,
decorators: [withDesign],
}
export const myStory = () => <Button>Hello, World!</Button>
myStory.parameters = {
design: {
type: 'figma',
url: 'https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File',
},
}
- Adobe XD: storybook-addon-xd-designs
- Zeplin: storybook-zeplin
- Abstract: storybook-addons-abstract