Skip to content

CSF Next

This example writes its stories with CSF Next (preview.meta() and meta.story()) and registers the addon in the preview with addonVis(). It shows opting a story in with the snapshot tag and out with !snapshot, choosing the element to capture with parameters.snapshot.subject, and snapshotting the stories that story.test() adds.

Snapshots are taken during the Vitest run, not in the browser. This Storybook only renders the stories.

Open in Storybook

Open the full Storybook