2018-03-20 14:48:30 +09:00
|
|
|
# Storybook for Mithril
|
2018-03-20 14:48:25 +09:00
|
|
|
|
2018-03-20 14:48:30 +09:00
|
|
|
Storybook for Mithril is a UI development environment for your Mithril components.
|
2018-03-20 14:48:25 +09:00
|
|
|
With it, you can visualize different states of your UI components and develop them interactively.
|
|
|
|
|
2019-06-03 11:06:42 -07:00
|
|
|

|
2018-03-20 14:48:25 +09:00
|
|
|
|
|
|
|
Storybook runs outside of your app.
|
|
|
|
So you can develop UI components in isolation without worrying about app specific dependencies and requirements.
|
|
|
|
|
|
|
|
## Getting Started
|
|
|
|
|
|
|
|
```sh
|
2018-03-20 14:48:30 +09:00
|
|
|
cd my-mithril-app
|
2018-10-29 11:47:01 +08:00
|
|
|
npx -p @storybook/cli sb init
|
2018-03-20 14:48:25 +09:00
|
|
|
```
|
|
|
|
|
|
|
|
For more information visit: [storybook.js.org](https://storybook.js.org)
|
|
|
|
|
2018-10-13 16:05:06 +08:00
|
|
|
---
|
2018-03-20 14:48:25 +09:00
|
|
|
|
|
|
|
Storybook also comes with a lot of [addons](https://storybook.js.org/addons/introduction) and a great API to customize as you wish.
|
|
|
|
You can also build a [static version](https://storybook.js.org/basics/exporting-storybook) of your storybook and deploy it anywhere you want.
|