Getting started

Storybook Rsbuild

latest versionNPM downloads per monthlicense

Storybook versions

The main branch ships the Storybook v9 Rsbuild builder together with each framework integration. Use the table below to match your Storybook version, and review the official migration guide before moving to v9.

StorybookStorybook Rsbuild
v9^2.0.0
v8^1.0.0
PackageWhat it provides
storybook-builder-rsbuildThe Rsbuild-powered Storybook builder
storybook-react-rsbuildReact framework integration configured for Rsbuild
storybook-vue3-rsbuildVue 3 framework integration configured for Rsbuild
storybook-html-rsbuildVanilla JavaScript/TypeScript integration
storybook-web-components-rsbuildLit and Web Components integration
storybook-addon-rslibAddon that reuses Rslib configuration inside Storybook

Usage

Peer dependency requirements
  • @rsbuild/core >= 1.0.1 — Storybook Rsbuild depends on the stable Rsbuild 1.0 runtime. See the 1.0 release announcement for background.
  • storybook >= 9.0.0 — The packages are validated against Storybook 9. Upgrade guidance is available in the Storybook release notes.

When using the v8-compatible packages, you do not install storybook-builder-rsbuild directly. Framework packages such as storybook-react-rsbuild and storybook-vue3-rsbuild include it for you.

Use the following framework guides to plug Storybook Rsbuild into your project.

Use with frameworks

React

See integrating with React.

Vue

See integrating with Vue.

Vanilla JS/TS

See integrating with vanilla JavaScript / TypeScript.

Web components

See integrating with web components (Lit).

Integration

With Rslib

Reuse your existing Rslib configuration inside Storybook.

See integrating with Rslib.

With Rspack

Connect Storybook Rsbuild to an existing Rspack setup.

See integrating with Rspack.