Development
en-US

CSF 4: Types Flow from preview → meta → story, and Agents Don't Need a Browser First

CSF 4 uses a factory chain to propagate types from preview down to stories, while a headless CLI lets agents read component docs without spinning up a dev server.

·25 min read·Lios09
#storybook#csf4#typescript#frontend#docgen#cli

1. What Storybook 11 Wants to Hand Agents First: A Trustworthy Component Catalog

Storybook 11 beta was released on 2026-11-09 by Michael Shilman. The announcement frames the release around "agent-ready design systems," targeting a very specific failure mode: coding agents can churn out UI quickly, but without context on the project's actual components, they duplicate existing ones, misuse APIs, and miss states that need coverage.

To address this, the team shipped several companion pieces alongside it: official skills for coding agents (ui-workflow handles "build with existing components → write stories → test → hand off for human review"; component-docs queries component APIs, metadata, docs, and examples in a token-efficient format before writing code), Claude and Codex plugins, and a headless CLI. CSF 4's factory API and react-component-meta on React are the two foundations that make this chain work—the former ensures stories written by humans (and agents) hold up under type checking, while the latter lets agents inspect which props a component actually accepts without launching Storybook in a browser first.

There are two sets of numbers in the blog post worth attributing explicitly. First, the headline pitch: these capabilities come "in a 25% smaller package with up to 10x faster context delivery than v10." Second, a more specific note on the CLI: "On large projects like Chromatic, cold-start docgen results are delivered to agents ~10x faster than in Storybook 10. We anticipate another 2x improvement once TypeScript 7.1 stabilizes." Both are the Storybook team's own measurements and projections; I will refer back to them below, though I have not reproduced that Chromatic cold start myself, nor verified how the "25% smaller" figure was measured.

The team is aiming for a stable release in December. The upgrade command is npx storybook@next upgrade, and new projects can use npm create storybook@next. CSF 4 currently supports React, Vue, Angular, Web Components, and Svelte. The migration guide calls it the recommended story format for Storybook 11 while making clear that CSF 3 still works and that you can migrate one file at a time.

2. What CSF 3 Lacked Wasn't Type Utilities, but an Automatically Connected Chain

The official docs lay out CSF 3's TypeScript pattern clearly:

const meta = {
  component: Button,
} satisfies Meta<typeof Button>;
export default meta;

type Story = StoryObj<typeof meta>;

export const Primary = {
  args: {
    primary: true,
  },
} satisfies Story;

Both Meta and StoryObj are generic. Pass in typeof Button, and TypeScript rejects invalid args while typing decorator, play, and loader parameters against the component's props. That is already far better than a plain untyped object, yet it relies on you wiring three pieces together manually:

  1. meta must use satisfies Meta<typeof Button>, not const meta: Meta<typeof Button> = { ... }. The latter widens the object to Meta itself, hiding which specific args you defined on meta from downstream stories.
  2. StoryObj must take typeof meta, not typeof Button a second time. The official TypeScript guide explicitly explains this step: passing typeof meta to StoryObj "informs TypeScript of the connection between the meta and StoryObj types," so TypeScript understands that args can live on either meta or a story, and a required arg already provided in meta does not have to be repeated in every story.
  3. Each story then needs satisfies Story to catch missing required props and prevent "play is possibly undefined" errors when reusing play functions across stories.

Drop any one of those three links and the code still runs on the surface, while the types silently widen. That is what I specifically mean when calling CSF 3's inference "incomplete": the utility types exist, but the author has to stitch the type graph together by hand every time; wire it up slightly wrong, and TypeScript won't automatically propagate constraints from component and preview configuration down to every story.

Two other gaps come straight from the official docs rather than speculation:

  • Custom args in CSF 3 require manually writing an intersection type—such as React.ComponentProps<typeof Page> & { footer?: string }—and passing it to Meta<...>. The component's own props and your extra fields get flattened into a single type argument, which easily drifts as a file grows complex.
  • Injecting addon parameters and globals types from preview across the entire project is new in CSF 4. As the API docs put it: "The ability for an addon to provide annotation types (parameters, globals, etc.) is new and not all addons support it yet." In other words, when you wrote parameters: { a11y: { ... } } on a story in CSF 3, TypeScript had no official type channel originating from "which addons are installed in this project." Even in CSF 4's annotation reference, the base type of parameters is still { [name: string]: any }; what actually makes layout: 'centered' "type-safe!" is the factory chain narrowing the type at each step, not a change to that field's syntax.

So CSF 3 was never "untyped." What it lacked was a way to connect preview config, component props, custom args, and addon annotations into a single chain without making the author redeclare the wiring over and over.

3. The Factory API: Each Step's Return Value Feeds the Next Step's Types

The CSF 4 API makes this chain explicit: three functions work as factories where each step produces the next function (definePreview → preview.meta → meta.story), providing full type safety along the way.

Project-level configuration no longer exports a plain object annotated with Preview; instead, it calls definePreview:

import { definePreview } from "@storybook/your-framework";
import addonA11y from "@storybook/addon-a11y";

export default definePreview({
  addons: [addonA11y()],
  parameters: {
    a11y: {
      options: { xpath: true },
    },
  },
});

addons is the key annotation here, and it is only valid in a CSF 4 preview. Every addon listed contributes its types to the entire project, enabling autocomplete and type checking. Official addons use default imports (import addonName from '@storybook/addon-name'), whereas community addons should use namespace imports (import * as addonName from 'community-addon-name'). Running npx storybook add <addon> or storybook dev automatically updates the preview config to add the necessary addon references.

Story files no longer import Meta or StoryObj from @storybook/your-framework; they import this preview object instead:

import preview from "../.storybook/preview";
import { Button } from "./Button";

const meta = preview.meta({
  component: Button,
  parameters: {
    layout: "centered",
  },
});

export const Primary = meta.story({
  args: { primary: true },
});

Compared to CSF 3, several differences go beyond syntactic sugar:

  • meta no longer needs export default. Default-exporting meta was only required in CSF 3 and earlier.
  • You no longer manually thread component prop types into meta or stories. As the upgrade guide puts it: "Thanks to the factory function pattern, the types are now inferred automatically."
  • component drives default rendering as well as automatic props tables and other component metadata. title can be omitted since Storybook infers it from the file path; if written manually, it must be statically analyzable and unique across files.
  • Relative imports like ../.storybook/preview inside story files break when files move. The docs recommend Node.js subpath imports or bundler aliases instead, such as "#*": ["./*", "./*.ts", "./*.tsx"] in package.json.

When you need fields beyond the component's own props, you no longer have to maintain a verbose, error-prone intersection type. preview.meta infers component props by default, and preview.type only declares the extra fields:

type CustomArgs = { icon: "check" | "heart" | "star" };

const meta = preview.type<{ args: CustomArgs }>().meta({
  component: Button,
  render: ({ children, icon, ...args }) => (
    <Button {...args}>
      <Icon name={icon} /> {children}
    </Button>
  ),
});

export const Primary = meta.story({
  args: {
    children: "Button",
    icon: "star",
  },
});

The docs highlight two constraints that are more important to remember than the headline "we have types now":

  • Every key in preview.meta's args must be a valid story arg: a component prop, a typed render parameter, an arg used by a decorator, or a field declared via preview.type. Values are checked against those types, so literals like variant: 'primary' no longer need as const.
  • Types passed to preview.type apply to every story in the file. If only one story needs extra fields, leave meta untouched and use meta.type<{ args: CustomArgs }>().story({...}) instead. Unlike StoryObj, required args in that type must be provided on that story. Args already supplied in meta remain optional, except for any you redeclare in meta.type—those must be passed again because the old values in meta were never type-checked against the new type.

Angular and Web Components have an additional rule: do not pass the component class itself into preview.type; pass only custom args, e.g. preview.type<{ args: { customProp: string } }>(). The component's own args are already inferred and are all optional, whereas the type you pass in is applied as-is—so passing the class makes every one of its members a required arg. On React, Vue, and Svelte, passing a type that also includes component props still works.

.extend derives a new story from an existing one. Its merge semantics match how annotations cascade across preview, meta, and story: args shallow-merge, parameters deep-merge (with arrays replaced), and decorators and tags concatenate. Reading Story.args or Story.parameters directly still works in CSF 4, though both are now deprecated; combined values now live on Story.composed (named "composed" because they combine the story, component meta, and preview layers), while raw inputs live on Story.input.

Adjacent to typing, the testing-side changes are worth noting too: CSF 4 stories can be reused directly in Vitest without calling composeStories first. Primary.run() mounts the component and runs Storybook's lifecycle hooks, while Primary.Component lets you render it yourself with Testing Library. Inside play or beforeEach, if you want to call mock APIs on an arg created with fn(), you now need to wrap it with mocked() from storybook/test, since args inside those callbacks are typed according to the component's declared function signature rather than automatically widened to mocks. The csf-factories and csf-next-mocked-args automigrations add that wrapper for you.

Migration itself is designed to be incremental: npx storybook automigrate csf-factories converts CSF 3 files to CSF 4 in bulk, though you cannot mix formats within the same file. CSF 3 remains fully supported in Storybook 11—both the beta post and the migration guide state this explicitly. The CSF overview FAQ even says CSF 1, 2, and 3 will remain supported "for the foreseeable future" and that "None of these prior formats are deprecated." At the same time, many CSF 3 examples in the same v11 docs carry a banner stating that CSF 1, 2, and 3 "will be removed in a future version of Storybook." I did not find a concrete removal version number on any of the pages I read, so the safer reading is: CSF 3 still works in Storybook 11, CSF 4 is the recommended format, and "will be removed in the future" is currently a docs banner rather than a versioned deprecation timeline.

4. Type Flow: Addons Inject from Above, Args Narrow from Below

CSF 4 types flow from definePreview through preview.meta to meta.story, while addons extend annotation types such as parameters at the preview layer

What the factory pattern actually changes is the direction of type flow. In CSF 3, a story file was an isolated type-checking unit: it knew typeof Button, but it had no idea which addons the project registered in preview, or whether you wired meta and story together with satisfies properly. CSF 4 makes preview the root of the type graph. Register an addon once at the root, and every preview.meta and meta.story beneath it inherits the same parameters and globals types; component is then captured at the meta layer and passed down to story args.

To make concrete what actually happens when you omit a required prop or pass the wrong type, I wrote a minimal generic factory. It is not Storybook source code and has no @storybook/* dependencies—it keeps only the types relevant to args and addon parameters along the definePreview → preview.meta → meta.story chain. Here is the core of that sketch:

// Unofficial illustration — not Storybook source code

type ButtonProps = {
  label: string;
  primary?: boolean;
  disabled?: boolean;
};

function Button(_props: ButtonProps) {
  return null;
}

type ProjectParams = {
  layout?: "centered" | "fullscreen" | "padded";
  a11y?: { options?: { xpath?: boolean } };
};

type ComponentProps<C> = C extends (props: infer P) => unknown ? P : never;

type RequiredKeys<T> = {
  [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
}[keyof T];

type RemainingRequired<Args, MetaArgs> = Exclude<
  RequiredKeys<Args>,
  keyof MetaArgs
>;

type StoryArgsInput<Args, MetaArgs> = Partial<Args> &
  Required<Pick<Args, RemainingRequired<Args, MetaArgs> & keyof Args>>;

type StoryAnnotations<Args, MetaArgs, TParams> =
  RemainingRequired<Args, MetaArgs> extends never
    ? { args?: Partial<Args>; parameters?: TParams }
    : { args: StoryArgsInput<Args, MetaArgs>; parameters?: TParams };

function definePreview(annotations: {
  addons?: unknown[];
  parameters?: ProjectParams;
}) {
  return {
    meta<C, const MetaArgs extends Partial<ComponentProps<C>> = {}>(metaAnn: {
      component: C;
      parameters?: ProjectParams;
      args?: MetaArgs;
    }) {
      type Args = ComponentProps<C>;
      return {
        story(storyAnn: StoryAnnotations<Args, MetaArgs, ProjectParams>) {
          return { preview: annotations, meta: metaAnn, story: storyAnn };
        },
      };
    },
  };
}

const preview = definePreview({
  parameters: {
    layout: "centered",
    a11y: { options: { xpath: true } },
  },
});

const meta = preview.meta({
  component: Button,
  parameters: { layout: "centered" },
});

export const Primary = meta.story({
  args: { label: "Click me", primary: true },
});

const metaWithLabel = preview.meta({
  component: Button,
  args: { label: "OK" },
});

export const FromMeta = metaWithLabel.story({
  args: { primary: true },
});

export const Missing = meta.story({
  args: { primary: true },
});

export const Wrong = meta.story({
  args: { label: "Click me", primary: "yes" },
});

export const BadParam = meta.story({
  args: { label: "Click me" },
  parameters: { layout: "wide" },
});

Primary and FromMeta pass type checking: the former supplies the required label on the story itself, while the latter sets label on meta so the story only needs the optional primary. That is exactly what typeof meta had to patch manually in CSF 3, and what the factory now handles automatically in CSF 4.

Compiling the snippet above with TypeScript 5.9.3 under --strict --noEmit produces the following verbatim errors for the other three stories (line numbers correspond to the code block above):

(83,3): error TS2322: Type '{ primary: true; }' is not assignable to type 'StoryArgsInput<ButtonProps, {}>'.
  Property 'label' is missing in type '{ primary: true; }' but required in type 'Required<Pick<ButtonProps, "label">>'.
(87,30): error TS2322: Type 'string' is not assignable to type 'boolean | undefined'.
(92,17): error TS2322: Type '"wide"' is not assignable to type '"centered" | "fullscreen" | "padded" | undefined'.

Those three errors correspond respectively to omitting the required label, passing a string to primary, and giving layout a value not allowed by the addon parameter type. Read this as a demonstration of what the factory chain is supposed to reject at the type level, not verbatim diagnostics from Storybook's published packages—I did not type-check @storybook/react-vite or other official packages here, and the real generics are naturally much richer (handling preview.type / meta.type, args introduced by decorators, and module augmentation via addon ./preview exports).

My takeaway is that CSF 4 feels like "finally no more satisfies" not because it invented a new kind of story object, but because it turned the runtime composition chain that already existed—preview annotations flowing into meta, then into story—directly into a TypeScript call chain. Once the type graph matches the runtime graph, missing props, type mismatches, and unrecognized addon parameters become compile-time errors instead of broken Controls or misbehaving addon panels you only spot after opening a browser.

5. storybook tools: One Toolset, Two Ways to Reach It

Types solve how humans write valid examples of a component. Agents also face a second problem: how to ask "what components exist in this design system, and what props does a given component take?" without opening localhost:6006.

The beta blog's answer is the new tools command in the CLI, which "exposes a fast, headless Storybook." It powers the official skills and also makes it easy to build custom skills, tools, and workflows. The public examples look like this:

npx storybook@next tools --help

npx storybook@next tools docs list
npx storybook@next tools docs show --id "your-component-id"

The key performance decision is routing, not forcing everything to be headless or everything into a browser. In the team's words, the CLI "attaches to an existing dev server when a tool needs the browser, as storybook tools review create does, and bypasses the dev server entirely when it's not needed." review create builds a browser review page that groups stories for changed components and affected pages alongside a summary of changes and key states to inspect, so it has to attach to a running instance. docs list and docs show merely read component documentation—there is no reason to boot a UI first.

This is also why the team now recommends skills over connecting only via MCP. Storybook 11 still supports MCP and expands coverage to all core frameworks, yet the blog explicitly recommends skills as the smoothest way to use Storybook locally with agents because "they let agents fetch component context without a running Storybook instance." Skills are installed automatically on upgrades and new projects, and are also available via skills.sh and the Claude Code / Codex plugins. ui-workflow guides an agent to build UI using your components, write stories, run Vitest-based functional and accessibility tests via storybook tools test run, and then call storybook tools review create to assemble a review for a human. component-docs inspects existing components before editing code.

The MCP docs break this same set of capabilities into three toolsets whose names map almost one-to-one onto the CLI, giving a fuller picture:

AreaMCP ToolDocumented Purpose
Docsdocs-listReturns an index of components and standalone documentation entries
Docsdocs-showDetailed docs for a component: props, the first three stories, an index of remaining stories, and any extra docs you provide
Docsdocs-show-storyFull contents of a single story; called when docs-show isn't enough
Devstories-changed / stories-find-by-component / stories-previewChange detection, reverse lookup from component to stories, and preview links
Devget-storybook-story-instructionsReturns guidance on writing useful stories, including which props to capture and how to write interaction tests
Devreview-createPublishes an organized review page and returns its URL
Testtest-runRuns tests for specified stories (including accessibility tests if configured) and lets the agent interpret the results

MCP itself runs on the dev server, defaulting to http://localhost:6006/mcp. The docs toolset reads from the components manifest, which is off by default and enabled via features.componentsManifest: true in .storybook/main.ts. The frameworks that currently generate it are all React frameworks, @storybook/angular-vite, and @storybook/vue3-vite. The MCP overview also adds a detail directly relevant to the CLI: the storybook tools docs CLI (also used by the Claude Code and Codex plugins) respects the same refs configuration and lists each composed Storybook alongside the main one.

As for where the CLI's command surface comes from, I have not run the current npx storybook@next tools --help. PR #35719 described an implementation where storybook tools does not hardcode subcommands in the CLI; instead, it uses experimental_loadStorybook to load the target project's config and pulls commands, help text, and schemas from getRegisteredToolsets()—so test run only appears if addon-vitest is installed. That PR was closed in 2026-08 to be re-opened as #35850, so I treat it as a design note rather than a frozen --help spec. The only point that cross-checks directly against the official blog post is the split itself: tools that do not need a browser run in a standalone process, while tools that need one connect to an already-running Storybook.

6. Where the Metadata Comes From: Why React Moved to react-component-meta

Component source and CSF files have props extracted via react-component-meta and read headlessly by storybook tools; only browser-dependent commands attach to the dev server

For an agent to "list components and show props," something on the server side has to extract that information first. Storybook 11 moves this work out of bundler plugins and onto the Storybook server.

The migration guide states this plainly: Storybook 11 "reads your components' props on the Storybook server with the TypeScript compiler API," and feeds the results into manifests, Controls, story snippets, and the code panel. docgenServer is enabled by default for @storybook/angular-vite, @storybook/nextjs, @storybook/nextjs-vite, @storybook/react-native-web-vite, @storybook/react-vite, @storybook/react-webpack5, @storybook/svelte-vite, @storybook/sveltekit, @storybook/tanstack-react, @storybook/vue3-vite, and @storybook/web-components-vite. It replaces typescript.reactDocgen for React and framework.options.docgen for Vue.

The legacy bundler-side path is now deprecated and slated for removal in Storybook 12. The official assessment of the two old React implementations lives on the typescript.reactDocgen page: react-docgen-typescript "invokes the TypeScript compiler, which makes it slow but generally accurate," whereas react-docgen "performs its own analysis, which is much faster but incomplete." For years, React users effectively had to pick between "slow and accurate" and "fast and incomplete." The beta post introduces react-component-meta as the replacement for both, "providing better accuracy and performance." The Manifests docs likewise note that React prop extraction now runs server-side via React Component Meta by default; if you disable docgenServer, manifest generation falls back to whichever bundler parser reactDocgen selects, and you have to install that parser yourself.

Implementation details for react-component-meta come from the merged PR #33914 (merged 2026-03-23), not the beta blog post. According to the PR author, it uses TypeScript's own LanguageService—the same API behind IDE autocomplete—to identify components and extract props. Unlike react-docgen's AST heuristics, or react-docgen-typescript spinning up a disposable ts.Program per file, it maintains a persistent, incrementally updated LanguageService. The architecture intentionally mirrors Vue Component Meta and is built on @volar/typescript and @volar/language-core: one ComponentMetaProject per tsconfig, with a ComponentMetaManager routing requests to the right project; when files change, projectVersion increments and the LanguageService recompiles only modified files based on mtime.

Extraction follows two paths:

  • Path 1 (described in the PR as "~95%"): resolvePropsFromStoryFile() locates JSX matching the target component inside the story file (CSF 1, or CSF 3 with a render function) and calls checker.getResolvedSignature() to pull out the full props type. TypeScript resolves it the same way autocomplete does—polymorphic components with generic call signatures get instantiated with their default type parameters, yielding concrete props. The author notes they deliberately avoided injecting virtual probe files, since inserting files into a TS program invalidates caches and hurts performance; scanning real story files is faster.
  • Path 2: resolvePropsFromComponentType(), used for args-only CSF 3 stories without JSX. It inspects getCallSignatures()[0].parameters[0] directly on the component type. The PR notes that this path does not work for polymorphic/generic components and points to TypeScript issue #61133.

That "~95%" figure is the PR author's claim about their own implementation's coverage; I have not measured the Path 1 vs. Path 2 split on a real repository. Still, it clarifies the design: the default strategy is to inspect how a component is actually invoked in its stories rather than looking at its declaration alone. That shares the same philosophy as CSF 4's type flow—grounding types in call-site instantiation.

The extracted data flows into the components manifest. According to the Manifests docs, it combines static analysis of CSF files with prop types extracted from the associated component source, covering names, descriptions, props, and usage examples. JSDoc comments are included, and the team strongly encourages documenting components and props. If meta declares subcomponents, the manifest includes those subcomponents' APIs as well, even when they are only meant to be used alongside the parent. By default, every story and standalone docs page carries the manifest tag; examples you want hidden from agents can be tagged !manifest. MDX pages generate a separate docs manifest.

A few behavioral changes in server-side docgen matter more during an upgrade than simply "a faster extractor":

  • React props are derived from TypeScript types. Default values come from destructuring and defaultProps, with destructuring taking precedence. Storybook no longer reads propTypes—components relying solely on propTypes will show no props at all.
  • Bundler options like propFilter have no server-side equivalent. Unlike before, prop types from node_modules are now read by default, with heuristics to avoid pulling in unnecessary types.
  • Story snippets and the code panel are static and do not update when Controls change; dynamic snippets are expected in Storybook 11.1.
  • TypeScript is now a required peer dependency (minimum 5.9) for the React, Vue 3, Svelte, and Web Components renderers. The migration guide notes that TypeScript 7.0 "does not include the compiler API that Storybook uses to generate Controls and the args table," so those features require TypeScript 5.9 or 6.x. React projects running TypeScript 7.0 fall back to bundler docgen until Storybook supports TypeScript 7.1. The beta post's expectation of another ~2x docgen speedup once TS 7.1 stabilizes and the migration guide's note about TS 7.0 lacking the compiler API are two sides of the same coin.
  • Storybook 11's minimum runtime also bumps to Node.js 22.12. That has nothing to do with CSF 4 itself, but it determines whether you can upgrade to a version that ships the tools command.

Put all of this together, and the CLI's "headless" mode stops looking like magic. docs list does not boot a hidden browser inside Node to render every story; it reads static analysis of CSF files combined with props extracted by the LanguageService. That explains why the team frames cold-start docgen latency as context-delivery speed for agents, and why this path bypasses the Vite/Webpack middleware stack entirely. The trade-offs are just as clear: legacy components relying only on propTypes, polymorphic components without JSX, and projects that disable docgenServer and hit the fallback path may not see the exact same metadata they used to get in the Controls panel.

7. My Take

  1. CSF 4's real contribution is aligning the type graph with the runtime graph, not saving a few lines of satisfies. CSF 3 could already catch invalid args and missing required props once you wired Meta, StoryObj<typeof meta>, and satisfies correctly. What was actually missing was how preview-level addon types, custom args, and values already supplied on meta automatically turned into optional fields on stories. Factories force you to start from the project root, so types can only flow downward along that chain—miswiring a link becomes structurally impossible. The trade-off is that every story file now imports preview. Subpath imports mitigate path fragility, but the dependency direction—story files depending on a project-level config object—is permanent, and it is precisely what allows types to flow across files.

  2. preview.type / meta.type are more honest than the old intersection types. They acknowledge that file-wide extra args and single-story extra args are not the same kind of extension, and enforce that any newly declared required field must be supplied again on that story. That is slightly more verbose than intersecting everything into Meta<PagePropsAndCustomArgs> in CSF 3, but it avoids hollow fields that exist in the type system without ever receiving a value at runtime. Meanwhile, the Angular / Web Components warning against passing a component class into preview.type shows that factories don't erase type-model differences between frameworks—they just funnel those differences through one explicit API.

  3. The headless CLI turns Storybook from "a site you have to open" into "a queryable component catalog." For coding agents, that matters more than another story syntax. Skills are recommended as the local default not because MCP is bad, but because MCP is still coupled to the dev server and (for the docs toolset) componentsManifest; docs list removes "boot a UI first" from the critical path. review create still needs a browser, and that split makes sense: reading an API is a static problem, while inspecting visual output is a runtime problem, and neither should force you to pay for the other.

  4. The official 25%, ~10x, and projected 2x numbers should all be cited as the team's own benchmarks. "25% smaller package" and "up to 10x faster context delivery" are headline claims; "~10x" is later narrowed to cold-start docgen on large projects like Chromatic; "another 2x" is explicitly a projection for TypeScript 7.1. They communicate order of magnitude, not absolute timings I have verified myself. For actual upgrade decisions, the unglamorous boundaries matter much more: propTypes are no longer read, snippets are temporarily static, TS 7.0 falls back to legacy docgen, not all addons export annotation types yet, and CSF 3 still works in v11.

  5. For new stories today, I would go straight to CSF 4; for an existing CSF 3 repo, there's no need to migrate everything at once just for the beta. The team provides the csf-factories automigration and supports file-by-file incremental adoption. Better immediate investments are adding JSDoc to components and props, verifying that React projects are running server-side docgen rather than falling back via docgenServer: false, and letting agents inspect the real component catalog via storybook tools docs list instead of guessing your Button props from training data. That reminder Storybook puts in its own MCP docs for agents—"Never hallucinate component properties"—is really what this whole architecture is built to solve.

References

Related Posts