Getting Started

Storybook Rsbuild

latest versionNPM downloads per monthlicense

The repository contains the Storybook Rsbuild builder and UI framework integrations.

package description
storybook-builder-rsbuild Rsbuild powered builder for Storybook
storybook-react-rsbuild React integration for Storybook with Rsbuild builder
storybook-vue3-rsbuild Vue 3 integration for Storybook with Rsbuild builder
storybook-html-rsbuild Vanilla JS/TS integration for Storybook with Rsbuild builder
storybook-html-web-components Web components (Lit) integration for Storybook with Rsbuild builder
storybook-addon-rslib Addon to load config from Rslib

Usage

Peer dependencies requirements
  • @rsbuild/core >= 1.0.1: The builder relies on Rsbuild's 1.0 stable version. Check out Rsbuild's 1.0 announcement for more details.
  • storybook >= 8.2.1: Storybook made some internal refactor in major version, 8.2.1 is tested out. (check out Storybook's release note for migrating from v7)

In Storybook v8, you don't need to manually install storybook-builder-rsbuild, it has been depended by the framework, such as storybook-react-rsbuild and storybook-vue3-rsbuild.

Refer to the documentation below for integration with the supported frameworks.

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

Integrating with Rslib to load the configuration seamlessly.

See integrating with Rslib.

With Rspack

Integrating with project that uses Rspack.

See integrating with Rspack.