Skip to content

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.

📋 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.

📋 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.

📋 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.

  • 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.

📋 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.

📋 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.

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

The changelog lists every release.

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

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

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

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

  • 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.

This table tracks compatibility of Astro’s built-in framework features with Storybook Astro.

FeatureStatusDescription
Component Rendering✅ SupportedCore Astro component rendering in Storybook
Props & Slots (strings)✅ SupportedPassing 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✅ SupportedAstro components and client-side UI components render together (React, Vue, Svelte, Preact, Solid, Alpine.js)
Client Directives✅ Supportedclient:load, client:only, etc. for framework components
Static Builds✅ Supportedstorybook build with build-time pre-rendering of Astro component stories (default mode)
Server Builds🚧 In ProgressrenderMode: 'server' with on-demand rendering via HTTP server. Requires Node.js runtime.
astro:assets (Image)✅ SupportedComponents 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)✅ SupportedComponents using other Astro components in templates render correctly
Nested Components (Props)✅ SupportedPass Astro component factories as props (e.g. args: { Icon: MyIcon }). See Props guide
Nested Components (Slots)✅ SupportedPass Astro component factories as slot content (e.g. slots: { default: ChildComponent }). See Slots guide
View Transitions❌ Not SupportedAstro’s View Transitions API (<ViewTransitions />)
Content Collections❌ Not Supportedastro:content module for type-safe content management
Middleware❌ Not SupportedAstro’s middleware system for request/response handling
API Routes❌ Not SupportedServer endpoints (/pages/api/* routes)
Server Islands❌ Not SupportedDynamic content islands with server-side rendering
Actions❌ Not SupportedType-safe backend functions (astro:actions)
Environment Variables❌ Not Supportedastro:env module for managing environment variables
Glob Imports❌ Not SupportedAstro.glob() for batch file imports
Database Integration❌ Not SupportedAstro DB and database utilities
Internationalization (i18n)❌ Not SupportedBuilt-in i18n routing and helpers
Prefetch❌ Not SupportedAutomatic page prefetching utilities
Dev Toolbar❌ Not SupportedDevelopment toolbar integrations
Markdown/MDX Features❌ Not SupportedAdvanced markdown processing beyond basic rendering
Adapters📋 Planned2.0’s server mode deploys with Astro’s own adapters (Node, Vercel, etc.). See Issue #423

Legend: ✅ Supported | 🚧 Partial/In Progress | 📋 Planned | ❌ Not Supported

This table tracks compatibility of Storybook’s built-in features when used with Astro components.

FeatureStatusDescription
Stories (CSF)✅ SupportedComponent Story Format for defining stories
Args & Controls✅ SupportedInteractive controls for component props, and a text control for each slot (dev only for Astro components; pre-rendered in static builds)
Actions✅ SupportedLog user interactions and events
Docs (Autodocs)✅ SupportedAutomatic documentation pages, with props tables generated from frontmatter JSDoc and a Slots section listing each slot
Docs (MDX)✅ SupportedCustom documentation pages with MDX
Docs Blocks✅ SupportedPre-built documentation components (Description, Primary, Controls, Stories, etc.)
Viewports✅ SupportedResponsive design testing with different viewport sizes
Backgrounds✅ SupportedTest components against different background colors
Measure & Outline✅ SupportedVisual debugging tools for spacing and layout
Component Description✅ SupportedExtracted from the JSDoc above Props (or at the top of the frontmatter); parameters.docs.description.component still overrides. See Controls & ArgTypes
ArgTypes Documentation✅ SupportedDescriptions, types and defaults are extracted from .astro frontmatter JSDoc; argTypes[].description still overrides. See Controls & ArgTypes
Source Code Display✅ SupportedDocs “Show code” and the Code Panel show generated Astro usage (e.g. <Component prop="value" />) that follows Controls changes. See Showing component source
Decorators✅ SupportedWrapper components/HTML for stories, in global/component/story positions. See Decorators guide and design record
Portable Stories✅ SupportedcomposeStories, composeStory, setProjectAnnotations for testing
Portable Stories Testing (Vitest)✅ SupportedTest stories with @storybook-astro/framework/testing’s composeStories/renderStory and Vitest, outside Storybook
Storybook Test Addon (@storybook/addon-vitest)✅ SupportedRuns stories as Vitest browser tests on Astro 5, 6 and 7. See the Testing guide
Play Functions✅ SupportedWorks 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✅ SupportedDebug play function interactions
Accessibility Addon✅ SupportedAutomated accessibility testing with a11y addon
Theming✅ SupportedStorybook UI theming and customization
Multi-framework✅ SupportedMix Astro and framework components (React, Vue, Svelte, etc.) in one Storybook
TypeScript✅ SupportedFull TypeScript support for stories and configuration
Hot Module Replacement✅ SupportedLive updates during development
Static Build✅ SupportedBuild static documentation site with storybook build

Legend: ✅ Supported | 🚧 Partial/Manual | 📋 Planned | ❌ Not Supported | 🚫 Blocked (Upstream)

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.