Storybook for Web Components & Rsbuild is tailored for Lit and custom-element projects, giving you fast component previews without leaving your Rsbuild workflow.
Run through these steps inside an Rsbuild project that renders Web Components.
Install the Web Components framework package.
.storybook/main.ts
You're good to go! See the web components sandbox for a complete reference and browse the Storybook docs for deeper guidance.
Consult types.ts for every configuration option exposed by the framework.