npm / @storybook/addon-svelte-csf
@storybook/addon-svelte-csf
What changed in @storybook/addon-svelte-csf 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-13.
7 breaking2 new APIs and options2 performance1 behavior and defaults7 tooling15 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@storybook/addon-svelte-csf 534 changes
Breaking changes 7
Static stories now require asChild.
The children prop is renamed to template.
meta can no longer be destructured from a defineMeta() call.
defineMeta now supports render, replacing the setTemplate function.
The save from UI feature is temporarily disabled.
The addon requires Storybook 8.2.0 or later and supports Storybook 9 prereleases.
The addon now requires Svelte 5.
New APIs and options 2
The legacy API flag lets teams migrate stories gradually to the new syntax.
Stories can use the new snippet-based Svelte CSF syntax.
Performance 2
Loads the Svelte config once in the story indexer instead of once per stories file.
The bundle size is smaller.
Behavior and default changes 1
All Svelte CSF stories receive the svelte-csf tag.
Tooling 7
Peer dependency ranges now include Storybook 11.0 canaries.
The peer dependency range now includes Storybook 10.5 and 10.6 prereleases.
npm releases now include provenance, giving developers release provenance information when evaluating the package.
Adds support for Vite 8.
The addon supports @sveltejs/vite-plugin-svelte v5.
Stories and meta definitions are type-safe.
The addon supports Vite 6.
Fixes and other changes 15
Fixes code snippet generation crashing when a story references a null arg directly.
Fixes an error with Vite 7 and older when defineMeta or a story gets an empty object or array.
Fixes the last character of a legacy stories file being added to the story again.
Fixes a compile error in the legacy Template and Story components when runes is true.
Preserves the primary component's story args type when defineMeta includes subcomponents.
Generated code snippets now keep the newlines between elements.
Fixes duplicated children, unnecessary {"..."} wrappers, and the <undefined> wrapper in generated code snippets.
Peer dependencies for Storybook were updated, affecting which Storybook versions are declared compatible with the addon.
Story children now override args.children as expected.
The addon now works with getAbsolutePath.
Invalid identifiers are now transformed properly.
The legacy API template hook now runs before Svelte in Vitest.
Badly formatted ESM that broke on Node 22 and 23 is fixed.
The parameters attribute on legacy <Story> is no longer removed.
Story-level tags now take effect in the Vitest integration.