Vanilla JS / TS
Use Storybook for vanilla JavaScript or TypeScript projects to preview UI components while keeping your Rsbuild pipeline intact.
Requirements
Getting started
These steps assume you already have an Rsbuild project without a specific framework.
Installation
Install the HTML framework package to enable vanilla stories.
Configure .storybook/main.ts
You're all set! Review the vanilla TypeScript sandbox to see the setup in action, and continue exploring the Storybook docs.
Next Steps
- Writing Stories: Learn how to write stories for vanilla JavaScript/TypeScript.
- Testing: Learn how to test your UI components.
Options
Please refer to the Configuration Guide for framework-specific options and defaults.