- Install Node.js: https://nodejs.org/en/download/package-manager/
- Install NVM: https://github.com/creationix/nvm
- npm i -g @storybook/cli
- cd ~/{PROJECT_PATH}
- nvm use
- npm install
- nvm use
- npm run start
- nvm use
- npm run build
npm run dev:storybook
- npm install
- npm run build:storybook
Example:
import { withReadme } from 'storybook-readme'
import Readme from './sidebar.readme.md'
stories
.addDecorator(withReadme(Readme))
.addWithJSX('Default', () => <Sidebar/>)