Storybook

Open Source

by Storybook

Provided by Storybook

Not yet rated
Platform
Web
Pricing
Open Source
Account required
No
Ads
None
Last verified
17 hours ago
Developer
Storybook
Official URL

Overview

Storybook is an open-source workshop for building user interface components away from the rest of an application. Instead of clicking through your app to reach a particular button, form or page state, you write a small "story" for each state and Storybook shows it on its own in a browser, where you can inspect and adjust it.

It is added to an existing front-end project with one command and runs as a local development server next to your code. Officially supported frameworks include React, Next.js, Vue, Angular, Svelte and SvelteKit, Preact, Web Components and React Native, mostly on top of Vite or Webpack, with community-maintained support for others such as Astro, Nuxt and SolidJS. The stories you write double as test cases: Storybook can run interaction, accessibility, visual and snapshot tests against them and report coverage, including in CI.

Stories also become documentation. Autodocs generates reference pages from them, and MDX lets you write longer guides, which makes Storybook a common home for design systems. It is maintained by Chromatic, which sells a hosted visual testing and review service that connects to it, but Storybook itself is free.

Features

  • Renders components in isolation, one story per state
  • Supports React, Next.js, Vue, Angular, Svelte, Preact, Web Components and React Native
  • Interaction, accessibility, visual and snapshot testing built on stories
  • Test coverage reports and CI integration
  • Autodocs and MDX for component documentation
  • Controls, Actions, Viewport and Backgrounds addons for trying out props and layouts
  • Addon API and catalogue for extending it
  • Installed into a project with npm create storybook

Privacy

See the official privacy policy. Storybook runs locally inside your own project; the project website loads Google Tag Manager.

Pros & Cons

Pros

  • Free and open source
  • No account needed; it runs inside your own project
  • One set of stories serves development, testing and documentation
  • Works with most mainstream front-end frameworks
  • Large addon catalogue

Cons

  • Adds configuration and dependencies to a project that must be kept up to date
  • Stories have to be written and maintained for every component
  • Hosted visual testing and review is a separate paid service from Chromatic
  • For developers only; it needs a Node.js front-end project to live in

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Frontend Development · Vite

    Bundles and serves frontend code with near-instant hot reload.

    Not yet rated
    Open Source Windows Linux
  • Frontend Development · Webpack

    Bundles JavaScript modules and assets for the browser.

    Not yet rated
    Open Source Web
  • Frontend Development · Parcel

    Bundles web applications with zero configuration.

    Not yet rated
    Open Source Web