storybook-stories

Installation
SKILL.md

Storybook Stories

Overview

Storybook is a frontend workshop for building UI components in isolation. Stories are written in Component Story Format 3 (CSF3), which uses object syntax with args for type-safe component documentation and testing.

When to use: Component documentation with live examples, interaction testing with play functions, visual regression testing, accessibility validation, design system maintenance, isolated component development.

When NOT to use: End-to-end testing (use Playwright/Cypress), API integration testing (use Vitest/Jest), full application testing (use browser automation), performance testing (use Lighthouse/WebPageTest).

Quick Reference

Pattern API Key Points
Basic story export const Default: Story = { args } Use args for simple single components
Complex story export const Example: Story = { render } Use render for multi-component layouts
Meta configuration const meta = { component, args } satisfies Meta Define defaults and argTypes
Interaction test play: async ({ canvas, userEvent, args }) canvas and userEvent provided directly
User interaction await userEvent.click(element) Always await userEvent methods
Related skills
Installs
42
GitHub Stars
11
First Seen
Feb 22, 2026