Introduction to Ladle
mainLadle is a high-performance tool for developing and testing React components in an isolated environment. It is designed as a drop-in replacement for Storybook and supports the Component Story Format (CSF).
Key features include:
- Vite-powered: Uses Vite and esbuild for fast module serving and bundling.
- Performance: Faster production builds, near-instant dev startup (with cache), and hot reloads under 100ms that preserve component state.
- Automatic Code-splitting: Each story is code-split by default, keeping initial bundle sizes small regardless of the total number of stories.
- Built-in Features: Supports controls, links, dark theme, RTL, preview mode, and React Fast Refresh.
- Developer Experience: No configuration required, responsive (no iframes), and A11y/keyboard friendly.
- Metadata Export: Automatically exports a
meta.jsonfile containing a list of stories and metadata for easier automated testing and crawling.