2022-05-12 10:10:41 +02:00

33 lines
1.1 KiB
Markdown

# Storybook for Svelte
Storybook for Svelte is a UI development environment for your Svelte components.
With it, you can visualize different states of your UI components and develop them interactively.
![Storybook Screenshot](https://github.com/storybookjs/storybook/blob/main/media/storybook-intro.gif)
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
cd my-svelte-app
npx sb init
```
For more information visit: [storybook.js.org](https://storybook.js.org)
---
Storybook also comes with a lot of [addons](https://storybook.js.org/addons) and a great API to customize as you wish.
You can also build a [static version](https://storybook.js.org/docs/svelte/sharing/publish-storybook) of your Storybook and deploy it anywhere you want.
## TODOs
- [ ] Support `addon-info`
- [ ] Support Svelte markup directly in stories
- [ ] Add Svelte storybook generator
- [ ] Provide stories that show advanced Svelte use cases
- [ ] Hydratable
- [ ] Advanced mount options