Roadmap
This page lists what’s planned for Storybook Astro. Each item links to the GitHub issue that tracks it.
2.0 is the next major release. Until it ships, 1.x stays the latest release on npm and gets critical fixes. The 2.0 milestone lists the work.
Builds through astro build
Section titled “Builds through astro build”📋 Planned · Issue #423
storybook build builds Astro stories with a real Astro build of a generated app, one page per story file, in both static and server mode. Astro then handles what Storybook Astro reimplements today: component CSS, url() assets, islands, scripts, fonts and images, the way your own site gets them. In server mode the render app deploys with Astro’s own adapters (@astrojs/node, @astrojs/vercel and so on). It’s also the base for keeping Controls live for Astro stories in a deployed Storybook, planned for 2.1 (Issue #156).
A spike in December 2026 built and deployed both modes this way on Astro 6 and 7.
Settings from astro.config
Section titled “Settings from astro.config”📋 Planned · Issue #424
Storybook Astro reads your integrations from astro.config, so you no longer repeat them in .storybook/main.js (framework.options.integrations becomes an optional override). The rest of the config applies too, such as aliases, vite.css, markdown and image settings, instead of the handful of fields read today.
Faster, cancellable renders in dev
Section titled “Faster, cancellable renders in dev”📋 Planned · Issue #425, Issue #426
Dev renders move from Vite’s HMR channel to an HTTP request, so a render you navigate away from is cancelled and errors report clearly. Dev, tests and @storybook/addon-vitest share one internal Vite server.
Supported versions
Section titled “Supported versions”- Storybook 10.6 and later, including 11 (Issue #316)
- Node 22.12 and later (Issue #318)
- Astro 6 and 7: the current Astro major and the one before. Astro 5 projects stay on 1.x.
The migration guide is tracked in Issue #321, and installing with npm create storybook on Storybook 11 in Issue #409.
After 2.0
Section titled “After 2.0”Astro Panel Addon
Section titled “Astro Panel Addon”📋 Planned · Issue #162
An “Astro” tab in the Storybook panel that shows, for the selected story, the HTML the server produced, how long the render took, the render mode and the active framework integrations, for debugging without DevTools. The issue links the design notes.
Render Performance
Section titled “Render Performance”📋 Planned · Issue #164
2.0’s HTTP render transport adds cancellation. Further work, such as preloading stories during idle time, comes after 2.0. The issue links the design notes.
More Astro Features
Section titled “More Astro Features”Once stories build as real Astro pages, some of these may come within reach. Each is reassessed after 2.0:
- Content collections (
astro:content, Issue #166) - Server islands and API routes
- Middleware and environment variables (
astro:env) - Internationalization (i18n routing and helpers)
- View Transitions
Recently Completed
Section titled “Recently Completed”The changelog lists every release.
Storybook 11 Support
Section titled “Storybook 11 Support”Shipped in: 1.16.0
Storybook Astro works on Storybook 11 as well as Storybook 10, including the Storybook 11 builds of storybook-solidjs-vite. Storybook 11 needs Node 22.12 or later.
Tracking: Issue #205
Props and Story Docs for AI Agents
Section titled “Props and Story Docs for AI Agents”Shipped in: 1.16.0, on by default on Storybook 11 since 1.17.0
With the Docgen Server and the components manifest on, AI agents using @storybook/addon-mcp get each Astro component’s props and slots, and each story’s description and an Astro snippet.
Tracking: Issue #353, Issue #354, Issue #214
Documentation: See Components manifest and AI agents
Slots in Docs and Controls
Section titled “Slots in Docs and Controls”Shipped in: 1.15.0
The Docs props table lists the slots an Astro component accepts in a Slots section, with descriptions from {/* @slot … */} comments, even when no story fills them. Each slot also gets a text control in the Controls panel, so slot HTML can be edited without the args.slots JSON editor.
Tracking: Issue #188, Issue #203
Documentation: See Controls & ArgTypes and the Slots guide
Component CSS Ships With Each Story
Section titled “Component CSS Ships With Each Story”Shipped in: 1.15.0
A story now gets the CSS an Astro page would: each <style> block, compiled and scoped by your installed Astro version (<style lang="scss"> included), and the stylesheets imported by the components it renders and the modules they import (plain CSS, Sass, CSS Modules, plugin virtual stylesheets), and the <style> blocks of server-rendered Vue and Svelte components. This works in dev, static builds and server mode, except that url() assets in that CSS return 404 in server mode (#305; see Troubleshooting). The CSS goes into the preview’s <head>, and stories on a Docs page that ship the same CSS share one copy.
Tracking: Issue #189, Issue #223, Issue #224, Issue #234
Documentation: See the Styling guide and Styles missing or wrong
Known Limitations
Section titled “Known Limitations”- Astro components in static builds are pre-rendered with default args — the Controls panel is automatically disabled for these stories in static builds (framework components remain fully interactive)
- Client-side behavior of Astro components requires end-to-end tests (Playwright, Cypress) as the Container API doesn’t execute script tags
- Circular component references are not yet detected or prevented when passing components as props
- Module hot-reloading with nested component references may require manual refresh in some cases
- Function args are not supported for Astro component stories — args are serialized over Vite HMR to the server-side Container, so function values (callbacks, render functions) cannot be passed. Astro components rarely need function props, but if yours does, consider wrapping the logic server-side or delegating to a framework component.
Feature Support
Section titled “Feature Support”Astro Features
Section titled “Astro Features”This table tracks compatibility of Astro’s built-in framework features with Storybook Astro.
| Feature | Status | Description |
|---|---|---|
| Component Rendering | ✅ Supported | Core Astro component rendering in Storybook |
| Props & Slots (strings) | ✅ Supported | Passing data as props and HTML-string content to slots |
| Scoped Styles | ✅ Supported | <style> blocks, compiled and scoped by your installed Astro version, and stylesheets imported by the components a story renders and the modules they import, CSS Modules, Vue and Svelte style blocks and plugin virtual stylesheets included |
| UI Framework Components | ✅ Supported | Astro components and client-side UI components render together (React, Vue, Svelte, Preact, Solid, Alpine.js) |
| Client Directives | ✅ Supported | client:load, client:only, etc. for framework components |
| Static Builds | ✅ Supported | storybook build with build-time pre-rendering of Astro component stories (default mode) |
| Server Builds | 🚧 In Progress | renderMode: 'server' with on-demand rendering via HTTP server. Requires Node.js runtime. |
astro:assets (Image) | ✅ Supported | Components using <Image> render correctly. Import image assets as ImageMetadata and pass as props. See Images guide |
| Font Provider API | 🚧 Partial | <Font> component renders with provider-resolved URLs (Google, Bunny, Fontsource) in dev and static builds. In server builds, <Font> throws FontFamilyNotFound (the CSS variables still work). Missing: the local provider, preload links, Capsize fallback metrics, font file emission. See Styling guide |
| Nested Components (Template) | ✅ Supported | Components using other Astro components in templates render correctly |
| Nested Components (Props) | ✅ Supported | Pass Astro component factories as props (e.g. args: { Icon: MyIcon }). See Props guide |
| Nested Components (Slots) | ✅ Supported | Pass Astro component factories as slot content (e.g. slots: { default: ChildComponent }). See Slots guide |
| View Transitions | ❌ Not Supported | Astro’s View Transitions API (<ViewTransitions />) |
| Content Collections | ❌ Not Supported | astro:content module for type-safe content management |
| Middleware | ❌ Not Supported | Astro’s middleware system for request/response handling |
| API Routes | ❌ Not Supported | Server endpoints (/pages/api/* routes) |
| Server Islands | ❌ Not Supported | Dynamic content islands with server-side rendering |
| Actions | ❌ Not Supported | Type-safe backend functions (astro:actions) |
| Environment Variables | ❌ Not Supported | astro:env module for managing environment variables |
| Glob Imports | ❌ Not Supported | Astro.glob() for batch file imports |
| Database Integration | ❌ Not Supported | Astro DB and database utilities |
| Internationalization (i18n) | ❌ Not Supported | Built-in i18n routing and helpers |
| Prefetch | ❌ Not Supported | Automatic page prefetching utilities |
| Dev Toolbar | ❌ Not Supported | Development toolbar integrations |
| Markdown/MDX Features | ❌ Not Supported | Advanced markdown processing beyond basic rendering |
| Adapters | 📋 Planned | 2.0’s server mode deploys with Astro’s own adapters (Node, Vercel, etc.). See Issue #423 |
Legend: ✅ Supported | 🚧 Partial/In Progress | 📋 Planned | ❌ Not Supported
Storybook Features
Section titled “Storybook Features”This table tracks compatibility of Storybook’s built-in features when used with Astro components.
| Feature | Status | Description |
|---|---|---|
| Stories (CSF) | ✅ Supported | Component Story Format for defining stories |
| Args & Controls | ✅ Supported | Interactive controls for component props, and a text control for each slot (dev only for Astro components; pre-rendered in static builds) |
| Actions | ✅ Supported | Log user interactions and events |
| Docs (Autodocs) | ✅ Supported | Automatic documentation pages, with props tables generated from frontmatter JSDoc and a Slots section listing each slot |
| Docs (MDX) | ✅ Supported | Custom documentation pages with MDX |
| Docs Blocks | ✅ Supported | Pre-built documentation components (Description, Primary, Controls, Stories, etc.) |
| Viewports | ✅ Supported | Responsive design testing with different viewport sizes |
| Backgrounds | ✅ Supported | Test components against different background colors |
| Measure & Outline | ✅ Supported | Visual debugging tools for spacing and layout |
| Component Description | ✅ Supported | Extracted from the JSDoc above Props (or at the top of the frontmatter); parameters.docs.description.component still overrides. See Controls & ArgTypes |
| ArgTypes Documentation | ✅ Supported | Descriptions, types and defaults are extracted from .astro frontmatter JSDoc; argTypes[].description still overrides. See Controls & ArgTypes |
| Source Code Display | ✅ Supported | Docs “Show code” and the Code Panel show generated Astro usage (e.g. <Component prop="value" />) that follows Controls changes. See Showing component source |
| Decorators | ✅ Supported | Wrapper components/HTML for stories, in global/component/story positions. See Decorators guide and design record |
| Portable Stories | ✅ Supported | composeStories, composeStory, setProjectAnnotations for testing |
| Portable Stories Testing (Vitest) | ✅ Supported | Test stories with @storybook-astro/framework/testing’s composeStories/renderStory and Vitest, outside Storybook |
Storybook Test Addon (@storybook/addon-vitest) | ✅ Supported | Runs stories as Vitest browser tests on Astro 5, 6 and 7. See the Testing guide |
| Play Functions | ✅ Supported | Works for both framework and Astro component stories, in the dev canvas and under the Storybook Test addon. One caveat on Controls changes; see Play functions and Controls changes |
| Interactions Panel | ✅ Supported | Debug play function interactions |
| Accessibility Addon | ✅ Supported | Automated accessibility testing with a11y addon |
| Theming | ✅ Supported | Storybook UI theming and customization |
| Multi-framework | ✅ Supported | Mix Astro and framework components (React, Vue, Svelte, etc.) in one Storybook |
| TypeScript | ✅ Supported | Full TypeScript support for stories and configuration |
| Hot Module Replacement | ✅ Supported | Live updates during development |
| Static Build | ✅ Supported | Build static documentation site with storybook build |
Legend: ✅ Supported | 🚧 Partial/Manual | 📋 Planned | ❌ Not Supported | 🚫 Blocked (Upstream)
Contributing
Section titled “Contributing”Interested in working on any of these roadmap items? Check the GitHub issues for ongoing discussions and collaboration opportunities, or see the AGENTS.md file in the repository for development guidance.