2.0.0 • Published 8 months ago

@storybook-tiny/svelte v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@storybook-tiny/svelte

A tiny storybook for svelte 5.

usage

initial setup:

# add to your project
npm i svelte
npm i -D @storybook-tiny/svelte

# install storybook template auto-detecting your package-manager
npx storybook-tiny
# or with pnpm
npx storybook-tiny -p pnpm

define some stories (e.g. in ./stories/Stories.svelte):

<script>
  import Storybook from '@storybook-tiny/svelte/src/Storybook.svelte'
  import ButtonStory from './Button.svelte'

  const stories = [
    '<small>Component</small>',
    {
      title: 'Button',
      component: ButtonStory
    }
  ]
</script>

<Storybook {stories} />

Then run with vite:

npx vite --open /stories/

license

MIT licensed

2.0.0

8 months ago

1.0.1

11 months ago

1.0.0

11 months ago