Storybook
An open-source workshop where you develop, view and test components in isolation, one story per state.
In more detail
Storybook shows each component outside the application, with controls to change its props, generated documentation and play functions for interaction tests. It becomes the living catalogue of a design system.
Related terms
- Component Driven Development — Building interfaces from the bottom up, one component at a time in isolation, before assembling them into pages.
- Component Story Format — Storybook's file format for stories: a default export describing the component and named exports, each a story object.
- story — In Storybook, one saved example of a component in a particular state, such as Button in its primary or loading state.
- play function — A function on a Storybook story that runs after it renders, simulating user actions and asserting on the result.
- Autodocs — The Storybook feature that builds a documentation page for a component from its stories, TypeScript types and JSDoc comments.
Taught in
- Storybook & Component Driven Development Workflows — Design Systems & Component Engineering
- Visual Regression Testing: Playwright & Snapshot Differencing — Design Systems & Component Engineering