storybook
Installation
SKILL.md
Storybook
Overview
Storybook is the standard tool for developing, documenting, and testing UI components in isolation. Components are rendered in "stories" — declarative examples that showcase every state. Storybook supports React, Vue, Angular, Svelte, Web Components, and more.
CSF3 — Component Story Format 3
CSF3 is the default story format since Storybook 7. Stories are plain objects with args, reducing boilerplate:
// Button.stories.tsx
import type { Meta, StoryObj } from "@storybook/react";
import { Button } from "./Button";
const meta = {
component: Button,
parameters: { layout: "centered" },
argTypes: {
variant: {
control: "select",
Related skills