Skip to content

Feature Support

This page tracks Astro’s built-in framework features and their compatibility status with Storybook Astro.

  • Component Rendering — Core Astro component rendering in Storybook
  • Props & Slots — Passing data and content to components
  • Scoped Styles — Component-scoped CSS (including Astro 6’s style sub-module imports)
  • Astro + UI Framework Components — Astro components and client-side UI components render together in one Storybook (React, Vue, Svelte, Preact, Solid, Alpine.js)
  • Client Directivesclient:load, client:only, etc. for framework components
  • Static Buildsstorybook build with build-time pre-rendering of Astro component stories
  • astro:assets (Image Optimization) — Components that use <Image> from astro:assets render correctly in Storybook. Import image assets in story files as ImageMetadata and pass them as props — no workarounds required. See Images.
  • Astro Fonts — Font virtual modules are stubbed with no-op exports. Components render correctly but without Astro’s font optimization.
  • View Transitions — Astro’s built-in View Transitions API (<ViewTransitions />)
  • Content Collectionsastro:content module for type-safe content management
  • Middleware — Astro’s middleware system for request/response handling
  • API Routes — Server endpoints (/pages/api/* routes)
  • Server Islands — Dynamic content islands with server-side rendering
  • Actions — Type-safe backend functions callable from frontend (astro:actions)
  • Environment Variablesastro:env module for managing environment variables
  • Glob ImportsAstro.glob() for batch file imports
  • Database Integration — Astro DB and database utilities
  • Internationalization (i18n) — Built-in i18n routing and helpers
  • Prefetch — Automatic page prefetching utilities
  • Dev Toolbar — Development toolbar integrations
  • Markdown/MDX Features — Advanced markdown processing features beyond basic rendering
  • Dynamic Astro Controls in Static Builds — Currently, Astro component stories are pre-rendered at build time. A future enhancement could add a companion server or service worker to enable live re-rendering with different args.
  • Adapters — Integration with Astro’s deployment adapters (Netlify, Vercel, etc.)
  • Error Handling — Better error boundaries and recovery mechanisms
  • Performance Optimizations — Caching strategies and render optimization for large component libraries

If you’re interested in helping add support for any of these features, check the GitHub issues for ongoing discussions.