- npm create vite@latest svelte-csf
- Select the svelte template
- Once created, run
yarn install
npx sb@next init --builder @storybook/builder-vite
to setup storybook using vite.yarn add @storybook/addon-svelte-csf
- Put
@storybook/addon-svelte-csf
into storybook addons in.storybook/main.cjs
- Copied Button component example from addon-svelte-csf repo and created a minimal test.stories.svelte
Controls do not work, args aren't being updated without a component reload."# storybook" "# svelte-test-ver2"