story
In Storybook, one saved example of a component in a particular state, such as Button in its primary or loading state.
In more detail
Stories document every visual permutation and error state, and each one can be tested for accessibility, interactions and pixels. Stories are written in Component Story Format and shown in Storybook's canvas.
Related terms
- Storybook — An open-source workshop where you develop, view and test components in isolation, one story per state.
- Component Story Format — Storybook's file format for stories: a default export describing the component and named exports, each a story object.
- args — The props a Storybook story passes to its component, which Storybook turns into editable controls.
Taught in
- Storybook & Component Driven Development Workflows — Design Systems & Component Engineering
- Visual Regression Testing: Playwright & Snapshot Differencing — Design Systems & Component Engineering