Component Story Format

Storybook's file format for stories: a default export describing the component and named exports, each a story object.

In more detail

CSF3 stories are plain objects with args instead of render functions, so a story can be as short as export const Primary = { args: { label: "Buy" } }. Being plain JavaScript, stories can also be imported into other tests.

Related terms

Taught in

References