Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
Build, test & document components
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. Find out more at storybook.js.org!
Run this command at the root of an existing project to install and configure Storybook:
npm create storybook@latest
Or paste this prompt into your agent:
Set up Storybook for me with npm create storybook@latest and follow its instructions precisely
Visit Storybook's website to learn more about Storybook, or follow the installation guide for other package managers and manual setup.
Documentation can be found on Storybook's docs site. To learn Storybook step by step, follow the tutorials.
View the Storybook Showcase to see how leading teams use Storybook.
Use storybook.new to quickly create an example project in Stackblitz.
Storybook makes building UI with agents faster, better and cheaper. Your agent reuses the components you already have, writes stories for what it builds, tests its work by running stories, and gives you a visual review to check the result.
Run this command in the root of your project to install Storybook's skills:
npx storybook automigrate skills
Skills are short instruction files in your repository that tell your agent what to do at each step of a UI change. Most AI agents support skills. Your agent learns how to interact with Storybook by reading skill files, and then calls the storybook tools command to get work done:
| Command | |
|---|---|
storybook tools docs list | List all components and docs entries |
storybook tools docs show | Show the props and usage examples of a component |
storybook tools stories changed | List the stories that are new, modified, or affected by uncommitted changes |
storybook tools test run | Run story tests, with accessibility checks if set up |
storybook tools review create | Publish a review of the stories that a change affects |
See Connect your agent to get started, and the CLI options for all the tools. If you want your agent to call Storybook through MCP tools instead of CLI commands, the MCP addon serves the same tools from your dev server.
These features are available for React, Next, TanStack, Vue, Angular, Svelte, Web Components and multiple community frameworks. Check the supported frameworks for more details.
When you publish your Storybook with Chromatic, Chromatic a
[Bug]: Docs pages lose their docgen after the dev server restarts while the manager tab stays open
https://github.com/storybookjs/storybook/issues/38047
Labels: bug, core, addon: docs, sev:S3, docgen
[Bug]: Server docgen replaces a generic component's type parameter with the type inferred at the story's JSX call site (T β unknown)
https://github.com/storybookjs/storybook/issues/38042
Labels: bug, react, typescript, block: props, sev:S3, docgen
Tip: If you want to make a fast contribution, check the βgood first issueβ label in the Issues tab for small frontend and docs tasks that are easy to fix directly on GitHub.
We welcome contributions of any type and skill level. As an open-source project, we believe in the power of community and welcome any contributions that help us improve Storybook. Whether you are a developer, designer, writer, or someone who wants to help, we'd love to have you on board. If you are interested in contributing, please read the following guidelines.
Whether you're new to open source or a seasoned contributor, we welcome all contributions. Here are a few ways you can contribute to Storybook:
If you're not sure where to start, you can always help us by:
Good First Issues to fixNote: Before you start contributing, please read the Code of Conduct and reach out to the maintainers if you have any questions or concerns about the project or the contribution process on the
#contributingchannel on Discord.
The team welcomes the use of AI as a personal assistant when contributing to Storybook. However, we strongly believe that a real person must be behind every issue and pull request.
All issues and pull requests must be opened by a real person using the official templates. If AI assisted in creating a pull request, please disclose the tool used (e.g. Claude, Codex, Copilot).
Pull requests or issues entirely generated by AI with no human involvement (e.g. by an automated agent) will be labeled by maintainers and closed automatically after 3 days unless a real person responds.
AI-generated comments on issues, pull requests or discussions that add no value or contain incorrect information will be hidden by the maintainers and can be subject to a ban if this becomes a spam behavior.
These measures help reduce maintenance burden and keep the team's work efficient.
Storybook is developed against a specific Node.js version specified in the .nvmrc file.
You can use any version manager to install the correct version of Node.js. We recommend using fnm.
# Check which version you're using
node --version
# node version manager
nvm use 22
# pnpm
pnpm env use --global 22
Install fnm and adjust your shell configuration to include the following parameters: fnm env, use-on-cd, corepack-enabled, and version-file-strategy recursive.
eval "$(fnm env --use-on-cd --corepack-enabled --version-file-strategy recursive)"
If you're a Windows user, you'll need to enable Windows Subsystem for Linux (WSL). You can follow the instructions here.
CI type-checks the monorepo with TypeScript 7 (yarn task check and the *.test-d.ts type tests). The workspace typescript package stays on TypeScript 6, because some tooling still needs its compiler API, so VS Code uses TypeScript 6 by default and can occasionally report different errors than CI.
To use the TypeScript 7 language server in VS Code instead (optional):
TypeScriptTeam.native-preview). When it first activates, it sets "js/ts.experimental.useTsgo": true in your user settings.The Vue and Svelte extensions still rely on TypeScript 6 plugins. While TypeScript 7 is on, TypeScript features inside .vue files and types of .svelte imports in .ts files are unavailable, so disable it when working on the Vue or Svelte packages.
Storybook uses a monorepo structure to manage the project and its packages. Here's a highlight of notable directories and files:
.
βββ CHANGELOG.md # Changelog for current version of Storybook
βββ CHANGELOG.prerelease.md
βββ CHANGELOG.v1-5.md
βββ CHANGELOG.v6.md
βββ CODEOWNERS
βββ CODE_OF_CONDUCT.md
βββ CONTRIBUTING # Info relevant for maintainers
βββ CONTRIBUTING.md <--------- You are here!
βββ LICENSE
βββ MAINTAINERS.md
βββ MIGRATION.md # Migration Guide for Storybook
βββ README.md
βββ RESOLUTIONS.md
βββ SECURITY.md
βββ code # Codebase for Storybook
β βββ __mocks__
β βββ addons
β