Description
This is a Storybook framework adapter for SolidJS, built on Vite, so you can develop and document Solid components in isolation. Storybook is a tool for building UI components outside the main app, and this package adds the Solid-specific parts: it supports both SolidJS and SolidJS 2, uses a Vite-powered builder, and is set up with TypeScript. Stories are written in the standard Storybook format, either CSF 3 or the newer CSF Next, and placed in files matching src/**/*.stories.{tsx,js}. Props are documented automatically from the component source for the Controls and Docs panels, using a TypeScript extractor, and the Docs page can show static code snippets generated from each story. The package also builds a components manifest, a JSON description of components, props and stories, with a debugger page that lists any generation errors. Storybook MCP support lets AI agents list components and read their prop documentation. Testing is integrated with Vitest and Playwright, and the adapter is compatible with existing Storybook addons. Decorators that return JSX should use a createJSXDecorator helper to avoid duplicate DOM nodes when args change.…
Highlights
- Storybook for SolidJS and SolidJS 2
- Automatic props in Controls and Docs
- Code snippets generated from stories
- Components manifest and debugger
- Vitest and Playwright testing
Ratings & Reviews
No ratings yet
Be the first to rate storybook-solidjs-vite.
People also visit
storybook-solidjs-vite FAQ
What is this package?
A Storybook framework adapter for SolidJS on Vite, so Solid components can be developed and documented in Storybook.
Which Solid versions are supported?
The README says both SolidJS and SolidJS 2.
How do I write stories?
Add files matching src/**/*.stories.{tsx,js} in either CSF 3 or CSF Next format.
Where do the prop tables come from?
A TypeScript LanguageService extractor reads the component source, and it is enabled by default.
Can I turn off the code snippets?
Yes. The README says the Show code snippets are on by default and gives a setting to disable them.
Does it work with AI agents?
Storybook MCP support lets agents list components, read prop docs and preview stories, and it needs docgen and the Storybook docs addon.
Can I use my existing addons?
Yes. The README says the adapter is compatible with Storybook addons.
What are the best storybook-solidjs-vite alternatives?
Popular alternatives to storybook-solidjs-vite include @storybook/addon-docs, @wc-toolkit/storybook-helpers and Solid (shadcn-solid). See all storybook-solidjs-vite alternatives










