Skip to content
Histoire logo

Why Histoire ​

Overview ​

Histoire is the French word for "Story" and is pronounced /is.twaʁ/, like "is·twar"

Histoire builds a component book from stories in your Vite project. Browse the book to see how components look and behave in different states.

A story renders one or more components in isolation. Each variant shows a specific use case or state. A button story might have default, disabled, and loading variants.

Write a story in your framework, import the components, and render them in each variant. Add controls to change props or state and Markdown to explain when to use each variant. The book gives your team one place to develop, document, and test components.

Follow the getting started guide to create your first story.

Why should I use Histoire? ​

Histoire reuses your Vite configuration, including the plugins that handle TypeScript, JSX, and styles. Write stories in the same Vue, Svelte, or React syntax you use in your project, and see edits through Vite's hot updates.

Build a code-split book to share with your team. Configure its theme to match your project, or install plugins to add workbench features.

Features ​

⚡ Dynamic source ​

In Vue stories, copy generated source that reflects the selected variant's current state. You can also supply source text yourself.

🍱 Variant grids ​

Compare variants of the same story side by side in a grid.

📖 Markdown docs ​

Add Markdown documentation with syntax-highlighted code examples.

🌔 Dark theme ​

Switch the book between light and dark appearance. Change the canvas background or use a checkerboard to check transparency.

📱 Responsive testing ​

Resize the selected variant or use viewport presets to check how components behave at different screen sizes.

🎹 Flexible controls ​

Use the built-in controls or write custom controls to change a variant's state.

📷 Visual regression testing ​

Capture variants and compare them with approved baselines using visual testing. You can also run screenshot checks with Percy or Lost Pixel.

🎨 Automatic design tokens ​

Histoire discovers Tailwind CSS v3 configurations and v4 theme stylesheets and generates stories for their design tokens.

Search story titles and documentation using the book's built-in index.

Meet the team ​

Avatar
Guillaume Chau
Web & JavaScript enthusiast Vue.js Core Team
💚Sponsor
Avatar
Hugo Attal
French software engineer 🇫🇷
💚Sponsor

Sponsors ​

Deploys by Netlify

Released under the MIT License.