@react-cad/storybook-framework
v0.23.0
Published
Storybook renderer for @react-cad projects
Downloads
23
Readme
@react-cad/storybook-framework
A framework to view @react-cad components in Storybook.
Usage
Preferably, create a component with @react-cad/create-component.
Alternatively, set up a React Storybook in the usual way, add the framework to .storybook/main.js, use the webpack 5 builder and disable React fast refresh:
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
framework: "@react-cad/storybook-framework",
core: {
builder: "webpack5",
},
reactOptions: {
fastRefresh: false,
},
};