Web Components
Storybook for Web Components & Rsbuild is tailored for Lit and custom-element projects, giving you fast component previews without leaving your Rsbuild workflow.
Requirements
Getting started
Run through these steps inside an Rsbuild project that renders Web Components.
Installation
Install the Web Components framework package.
Configure .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.
Next Steps
- Writing Stories: Learn the basics of CSF for Web Components.
- Lit Snippets: Examples using Lit and generic Web Components.
Options
Please refer to the Configuration Guide for framework-specific options and defaults.