React Storybook Story
A component to add additional information with your react-storybook stories.
To get started, install the module as a devDependency
npm install -D react-storybook-story
When writing stories, wrap your component with the <Story />
component and use the info
parameter to give additional info.
;;; ;
The FAQ
Error loading styles.css file
To load the stylesheet make sure your webpack config has style-loader
and raw-loader
setup properly. Modify your .storybook/webpack.config.js
file to include the style-loader
.
const path = ; moduleexports = module: loaders: test: /\.css?$/ loaders: 'style' 'raw' include: path ;
Credits
- markdown styles are based on markdowncss/modest