Storybook is a components library that allows you to write a representational components and combine them into compositions of components.
You can use storybook into two different ways:
- Import Storybook as a submodule and use components/compositions that it consist.
- Build Storybook directly and see what the components it includes and how you can customize them.
To be able to see your own component in the list of components after building storybook, you should:
- Write you component and place it depending for what platform you wrote it. (web/mobile)
- Create a story in (web or mobile dir)/stories/(components or compositions dir)/
- Build storybook using development server
yarn storybook
yarn
yarn storyboook
yarn build-storybook