Skip to main content

Quick switch

If you define multiple components in the same file, React Preview will display multiple tabs so you can switch between components in just one click.

Better yet, React Preview will also display components defined in sibling files of the same prefix. For example, when viewing Example.tsx, you will also see components defined in Example.stories.tsx.

This means that you can quickly preview Storybook stories without even switching between files.