Storybook 11 beta

Open original

Storybook 11 beta adds official skills and a headless CLI so coding agents can look up your existing components, write stories, run tests, and prepare reviews without a running dev server. It also moves to a type-safe story format (CSF 4) and upgrades docgen across React, Vue, Angular, Web Components, and Svelte.

  • Official skills (ui-workflow, component-docs) let agents find existing components, build with them, test with Vitest, and hand off a browser review, and they work without a running Storybook instance.
  • A new headless `storybook tools` CLI speeds up docgen, with cold-start results on large projects reported about 10x faster than Storybook 10, and the package is about 25% smaller.
  • CSF 4 adds type-safe stories through a factories API, with codemods for upgrading and CSF 3 still supported. The release is planned for December.

Storybook 11 is in beta, and the headline feature is a set of official skills and a headless CLI aimed at coding agents. The pitch is that agents building UI without context produce duplicate components, wrong APIs, and missing states, and that a maintained Storybook gives them the context they need. The ui-workflow skill walks an agent through building with your existing components, writing stories, testing, and handing off for review. The component-docs skill lets it look up components and their APIs and examples in a compact format before writing anything. Testing runs through a new `storybook tools test run` command, which uses Vitest for functional and accessibility checks, and `storybook tools review create` prepares a browser review grouped by changed components. Skills are installed on upgrade, available on skills.sh, and packaged as Claude Code and Codex plugins. The authors recommend skills over MCP for local use, since skills work without a running Storybook instance, though MCP support continues. The CLI itself is the piece that matters if you want to build your own agent workflows. The `tools` command runs a headless Storybook, and commands like `tools docs list` and `tools docs show --id` let you pull component documentation directly. It attaches to a running dev server only when a browser is needed, otherwise skipping it. The claimed numbers are a 25% smaller package and roughly 10x faster cold-start docgen on large projects like Chromatic compared with v10, with another 2x expected once TypeScript 7.1 stabilizes. Those are the vendor's own figures on their own benchmark, so treat them as directional until you measure on your codebase. On the authoring side, CSF 4 adds type-safe stories through a "factories" API, where you call `preview.meta()` and `meta.story()` rather than exporting plain objects. Addons can extend the type system to add their own parameters. Codemods handle migration, you can move story files incrementally, and CSF 3 keeps working. Framework changes are more mixed. React moves to react-component-meta in place of react-docgen and react-docgen-typescript. Vue moves to vue-component-meta. Angular gets a new `@storybook/angular-vite` builder, co-developed with the Analog.js and Angular teams, which needs Angular 21 or later. Web Components get controls driven by the Custom Elements Manifest, which Storybook will now generate itself if missing. Svelte is promoted to a core framework with Svelte 5 and SvelteKit 3 support and no longer needs a separate addon for Svelte CSF. To try it, run `npx storybook@next upgrade` on an existing project or `npm create storybook@next` for a new one. The migration guide lists the breaking changes, and the team is asking for bug reports with reproductions on GitHub, with release targeted for December.

Ask about this article