{"schemaVersion":"1.0","record":{"label":"Storybook","description":"Open-source component workshop for isolated UI states, documentation and tests, with framework-specific integrations.","aliases":[],"kind":"software","website":"https://storybook.js.org","overview":"Storybook is an open-source workshop for building and documenting UI components outside the full application. Stories capture particular rendered states so developers can revisit edge cases and share them for review. Supported framework integrations extend beyond React. Stories can also supply inputs for tests, but merely rendering a component does not assert its interactive behavior.","license":"MIT core; optional hosted services have separate terms","lifecycle":"active","example":false,"features":[{"name":"Isolated UI states and documentation","status":"supported","detail":"Stories record states across supported framework integrations and can be shared as documentation.","useCase":"Developing, documenting and testing UI components in isolation","platforms":["Browser UI with supported frontend frameworks","Node.js build/development tools"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://storybook.js.org/docs","locator":"Version 10.6; isolated stories and supported frameworks","retrievedAt":"2026-10-07T23:06:30Z","kind":"vendor"}]},{"name":"Interaction assertions","status":"supported","detail":"Play functions simulate behavior and assert results; a render-only story has a narrower test scope.","useCase":"Developing, documenting and testing UI components in isolation","platforms":["Browser UI with supported frontend frameworks","Node.js build/development tools"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://storybook.js.org/docs/writing-tests/interaction-testing","locator":"Play functions, assertions and awaited user events","retrievedAt":"2026-10-07T23:07:00Z","kind":"vendor"}]},{"name":"Vitest addon across all frameworks","status":"limited","detail":"Requires a Vite-based Storybook framework; the separate test-runner has different requirements.","useCase":"Developing, documenting and testing UI components in isolation","platforms":["Browser UI with supported frontend frameworks","Node.js build/development tools"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://storybook.js.org/docs/writing-tests/integrations/vitest-addon","locator":"Vite framework requirements; browser mode; comparison with test-runner","retrievedAt":"2026-10-07T23:07:31Z","kind":"vendor"}]},{"name":"Static self-hosting","status":"supported","detail":"Build output is a static application that can be served by an ordinary web host.","useCase":"Developing, documenting and testing UI components in isolation","platforms":["Browser UI with supported frontend frameworks","Node.js build/development tools"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://storybook.js.org/docs/sharing/publish-storybook","locator":"Static web application and alternative hosts","retrievedAt":"2026-10-07T23:07:16Z","kind":"vendor"}]},{"name":"No-network operation from config opt-out alone","status":"limited","detail":"The telemetry boot event precedes config evaluation; the documented environment variable is needed to suppress it too.","useCase":"Developing, documenting and testing UI components in isolation","platforms":["Browser UI with supported frontend frameworks","Node.js build/development tools"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://storybook.js.org/docs/configure/telemetry","locator":"Opt-out, pre-configuration boot event and crash reporting","retrievedAt":"2026-10-07T23:07:10Z","kind":"vendor"}]}],"alternatives":[],"slug":"storybook","draftAlternatives":[{"targetSlug":"ladle","status":"limited","detail":"Can replace Ladle for isolated React component work and extend the workflow to other supported frameworks. Configuration, test integrations and story features need review; shared CSF ancestry does not guarantee identical behavior.","useCase":"Developing, documenting and testing UI components in isolation","platforms":["Browser UI with supported frontend frameworks","Node.js build/development tools"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://storybook.js.org/docs","locator":"Version 10.6; isolated stories and supported frameworks","retrievedAt":"2026-10-07T23:06:30Z","kind":"vendor"},{"url":"https://ladle.dev/docs/addons/","locator":"Partial CSF support and no third-party addons","retrievedAt":"2026-10-07T23:06:43Z","kind":"vendor"},{"url":"https://storybook.js.org/docs/writing-tests/integrations/vitest-addon","locator":"Vite framework requirements; browser mode; comparison with test-runner","retrievedAt":"2026-10-07T23:07:31Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/storybookjs/storybook/blob/next/LICENSE","locator":"MIT source license","retrievedAt":"2026-10-07T23:07:00Z","kind":"vendor"},{"url":"https://storybook.js.org/docs","locator":"Version 10.6; isolated stories and supported frameworks","retrievedAt":"2026-10-07T23:06:30Z","kind":"vendor"},{"url":"https://storybook.js.org/docs/writing-tests/interaction-testing","locator":"Play functions, assertions and awaited user events","retrievedAt":"2026-10-07T23:07:00Z","kind":"vendor"},{"url":"https://storybook.js.org/docs/writing-tests/integrations/vitest-addon","locator":"Vite framework requirements; browser mode; comparison with test-runner","retrievedAt":"2026-10-07T23:07:31Z","kind":"vendor"},{"url":"https://storybook.js.org/docs/writing-tests/visual-testing","locator":"Chromatic account, cloud testing and pixel-versus-markup comparisons","retrievedAt":"2026-10-07T23:07:10Z","kind":"vendor"},{"url":"https://storybook.js.org/docs/sharing/publish-storybook","locator":"Static web application and alternative hosts","retrievedAt":"2026-10-07T23:07:16Z","kind":"vendor"},{"url":"https://storybook.js.org/docs/configure/telemetry","locator":"Opt-out, pre-configuration boot event and crash reporting","retrievedAt":"2026-10-07T23:07:10Z","kind":"vendor"},{"url":"https://storybook.js.org/docs/releases/migration-guide","locator":"ESM configuration and Node release requirements","retrievedAt":"2026-10-07T23:07:10Z","kind":"vendor"},{"url":"https://ladle.dev/docs/addons/","locator":"Partial CSF support and no third-party addons","retrievedAt":"2026-10-07T23:06:43Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/storybookjs/storybook/blob/next/LICENSE","locator":"MIT source license","retrievedAt":"2026-10-07T23:07:00Z","id":"license","title":"Storybook license","kind":"vendor"},{"url":"https://storybook.js.org/docs","locator":"Version 10.6; isolated stories and supported frameworks","retrievedAt":"2026-10-07T23:06:30Z","id":"intro","title":"Storybook documentation","kind":"vendor"},{"url":"https://storybook.js.org/docs/writing-tests/interaction-testing","locator":"Play functions, assertions and awaited user events","retrievedAt":"2026-10-07T23:07:00Z","id":"interaction","title":"Storybook interaction testing","kind":"vendor"},{"url":"https://storybook.js.org/docs/writing-tests/integrations/vitest-addon","locator":"Vite framework requirements; browser mode; comparison with test-runner","retrievedAt":"2026-10-07T23:07:31Z","id":"vitest","title":"Storybook Vitest addon","kind":"vendor"},{"url":"https://storybook.js.org/docs/writing-tests/visual-testing","locator":"Chromatic account, cloud testing and pixel-versus-markup comparisons","retrievedAt":"2026-10-07T23:07:10Z","id":"visual","title":"Storybook visual testing","kind":"vendor"},{"url":"https://storybook.js.org/docs/sharing/publish-storybook","locator":"Static web application and alternative hosts","retrievedAt":"2026-10-07T23:07:16Z","id":"publish","title":"Publishing Storybook","kind":"vendor"},{"url":"https://storybook.js.org/docs/configure/telemetry","locator":"Opt-out, pre-configuration boot event and crash reporting","retrievedAt":"2026-10-07T23:07:10Z","id":"telemetry","title":"Storybook telemetry","kind":"vendor"},{"url":"https://storybook.js.org/docs/releases/migration-guide","locator":"ESM configuration and Node release requirements","retrievedAt":"2026-10-07T23:07:10Z","id":"migration","title":"Storybook 10 migration","kind":"vendor"},{"url":"https://ladle.dev/docs/addons/","locator":"Partial CSF support and no third-party addons","retrievedAt":"2026-10-07T23:06:43Z","id":"ladle","title":"Ladle interoperability","kind":"vendor"}],"overviewCitations":["intro","interaction"],"licenseCitations":["license","visual"],"sections":[{"id":"states","heading":"Making hidden UI states inspectable","paragraphs":[{"id":"states-detail","content":[{"text":"A story captures a component with the props and context needed to reach a particular state. That lets a developer work on an empty list, validation message or loading view without repeatedly navigating the whole application. Storybook also organizes documentation alongside those examples. For AI-assisted work, this provides reviewable cases for generated components; it does not establish that the full application can actually reach each state correctly."}],"citations":["intro"]}]},{"id":"interactions","heading":"From examples to behavioral checks","paragraphs":[{"id":"interactions-detail","content":[{"text":"Interaction tests add a play function that performs user actions and asserts their outcome. The guide distinguishes a simple render check from tests of a form submission or another interaction. User events should be awaited, and assertions define what behavior is considered correct. A story with convincing sample content is therefore a useful test fixture, not automatically a complete functional test."}],"citations":["interaction"]}]},{"id":"test-integration","heading":"Framework-dependent test execution","paragraphs":[{"id":"test-integration-detail","content":[{"text":"The Vitest addon transforms stories into tests and uses browser testing, with Playwright Chromium in its documented automatic setup. It requires a Vite-based Storybook integration; the separate test-runner visits a running or published Storybook and supports a different range of setups. Existing projects should select the route matching their framework and test configuration instead of assuming all Storybook test integrations work interchangeably."}],"citations":["vitest"]}]},{"id":"visual","heading":"Local workshop versus cloud visual testing","paragraphs":[{"id":"visual-detail","content":[{"text":"The documented Visual Tests addon uses Chromatic and asks users to link an account and project. That cloud workflow is separate from the open-source workshop. Its pixel comparisons also differ from markup snapshots, so the presence of one kind of check does not establish the other. This article does not claim a current price, unlimited free capacity or that the cloud service is necessary for every possible screenshot-testing setup."}],"citations":["visual"]}]},{"id":"sharing","heading":"Sharing a built workshop","paragraphs":[{"id":"sharing-detail","content":[{"text":"Storybook can produce a static web application for an ordinary web server. Chromatic is one hosting option, but the publication guide also permits other hosts. More integrated features such as history or composition may need additional service support. As an operational assessment, published examples and documentation should contain shareable fixture data, and a private repository should not be mistaken for access control on a separately published build."}],"citations":["publish"]}]},{"id":"telemetry","heading":"Telemetry and version requirements","paragraphs":[{"id":"telemetry-detail","content":[{"text":"Telemetry is opt-out. The documentation says its configuration switch does not suppress a boot event sent before configuration is evaluated; the environment-variable opt-out covers that event. Crash reporting is separately disabled by default. Storybook 10 also requires ESM configuration and newer Node releases than many old examples. These setup details should be checked before adopting a generated configuration."}],"citations":["telemetry","migration"]}]},{"id":"fit","heading":"License and substitution","paragraphs":[{"id":"fit-detail","content":[{"text":"The covered Storybook source uses MIT terms. It can replace "},{"text":"Ladle","targetSlug":"ladle"},{"text":" for isolated React component work while offering other framework integrations. Existing stories and addon assumptions still need verification, and optional cloud services remain separate products. No installation, story migration or UI testing was performed for this article."}],"citations":["license","intro","ladle","visual"]}]}]},"id":"Q879","revision":927,"updatedAt":"2026-10-13T13:33:44Z","sourceUrl":"https://substitutefor.net/entities/Q879?revision=927"}}