Join live session: Top 8 Storybook myths holding your team back
Docs API
Storybook Docs

API references

An overview of all available API references for Storybook.

Configuration

NameDescription
main.js|ts

Storybook's primary configuration file, which specifies your Storybook project's behavior, including the location of your stories, the addons you use, feature flags and other project-specific settings.

preview.js|jsx|ts|tsx

This configuration file controls the way stories are rendered. You can also use it to run code that applies to all stories.

manager.js|ts

This configuration file controls the behavior of Storybook's UI, the manager.

CLI

Storybook is a CLI tool. You can start Storybook in development mode or build a static version of your Storybook.

Stories

NameDescription
CSF

Component Story Format (CSF) is the API for writing stories. It's an open standard based on ES6 modules that is portable beyond Storybook.

ArgTypes

ArgTypes specify the behavior of args. By specifying the type of an arg, you constrain the values that it can accept and provide information about args that are not explicitly set.

Parameters

Parameters are static metadata used to configure your stories addons in Storybook. They are specified at the story, meta (component), project (global) levels.

Docs

NameDescription
Doc blocks

Storybook offers several doc blocks to help document your components and other aspects of your project.