yarastqt / storybook-addons

Collect unofficial addons for storybook.
https://storybook-addons.now.sh
8 stars 1 forks source link

@storybook-addons/docs: Add design tab or switcher #130

Open yarastqt opened 4 years ago

axaxaman commented 4 years ago

было бы круто, чтобы было вот так:

withDocs({
    readme: {
        content: require('../Component.md'),
    },
   design: {
        content: require('../Component.md'),
   },
}),

или вот так:

withDocs({
    name: 'Dev',
    readme: {
        content: require('../Component.md'),
    },
}),
withDocs({
    name: 'Design',
    readme: {
        content: require('../Component-Design.md'),
    },
}),