args
The props a Storybook story passes to its component, which Storybook turns into editable controls.
In more detail
Changing a control updates the args and re-renders the story live, so designers can explore states without code. argTypes describe each arg, for example to show a colour picker or a checkbox.
Related terms
- story — In Storybook, one saved example of a component in a particular state, such as Button in its primary or loading state.
- Component Story Format — Storybook's file format for stories: a default export describing the component and named exports, each a story object.
- prop — An input passed to a React component, written like an HTML attribute, such as size="lg" in <Button size="lg">.
Taught in
- Storybook & Component Driven Development Workflows — Design Systems & Component Engineering