Join live: Storybook 11 AMA with the team

Storybook addon for yak, the zero-runtime CSS-in-JS library. Supports the Vite and webpack builders.

View on GithubNew to Storybook?Get started

@yak/storybook

Storybook addon for yak, the zero-runtime CSS-in-JS library with styled-components syntax. It sets up @yak/react in Storybook 10+.

Supports both Vite and Webpack Storybook builders.

Installation

npm install --save-dev @yak/storybook

Usage

Add the addon to your Storybook configuration:

// .storybook/main.ts
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
  addons: ["@yak/storybook"],
  // ...
};

export default config;

For Webpack, ensure you also have the SWC compiler addon:

addons: [
  "@storybook/addon-webpack5-compiler-swc",
  "@yak/storybook",
],

Documentation

See the full documentation at yak.style/docs/storybook.