Storybook for the components you share
Storybook shows every component in isolation, in every state, with its props documented. It is where design and engineering check that the button in Figma is the button in code.
How we set it up
The method depends on where your site is built. Here is what we use for Storybook on each platform.
Framer
Framer components live inside Framer, not in a code repository, so Storybook has nothing to render. We document Framer components in the project itself, with a components page and named variants. If your product also has a coded component library, Storybook covers that side.
Framer development Not a fitWebflow
Webflow components and classes live in Webflow, so Storybook does not apply. If you use Webflow DevLink to sync components with a React codebase, those exported components can have stories in your app’s Storybook. Otherwise we document Webflow components in a style guide page.
Webflow development Framework componentsAstro
Storybook does not list Astro as an official framework, so .astro files are not rendered directly. Where an Astro site uses React, Vue or Svelte components in islands, we document those with the matching Storybook framework, such as React with Vite. Pure Astro components are documented on a style guide route instead.
Astro development Official frameworkNext.js
Storybook has an official Next.js framework, @storybook/nextjs, that understands next/image, next/font, routing and your Next.js config. We write stories for every component state, add docs pages from the props, and run visual or interaction tests in CI so a change to one component cannot quietly break another.
Next.js developmentWhat teams use it for
Design QA against Figma
Designers review components in Storybook next to the Figma file, before they reach a page.
Living component docs
New developers find the right component, its props and examples without reading source code.
Catching regressions
Visual tests on each pull request show which components changed and how.
What to watch out for
A published Storybook can expose unreleased features. We deploy it behind access control or keep it internal.
Stories need realistic mock data. Real customer data never goes into fixtures that end up in a public build.
Storybook does not affect your site’s speed, but a slow CI run does slow your team. We keep visual tests to the components that matter.
Questions about Storybook
Do we need Storybook for a marketing site?
Does Storybook work with Astro?
Can Storybook connect to Figma?
How long does a Storybook setup take?
Thomas OldenburgerFounder, design and build leadStill deciding? A 30-minute call answers most of it.
Related integrations and services
Figma
The design tool where most product and website design happens, from wireframes to design systems.
OpenGitHub
Where the code for Astro and Next.js sites lives, is reviewed and gets deployed from.
OpenLoom
Short screen recordings for demos, walkthroughs and async feedback on designs.
OpenProduct design
Design systems that live in Figma and in code.
OpenComponent library
Glossary definition.
Open