Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Storybook Components?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-storybook-components)
---
description: Author clean Storybook stories: CSF3 args/play functions, state coverage, a11y checks and portable mocks
profile: standard
tags: storybook, frontend, ui, testing
---
# Storybook components
Use when creating or updating UI component stories (`*.stories.tsx`), Storybook config, or visual component checks.
## Story structure (CSF3)
- Use Component Story Format 3 (`satisfies Meta<typeof Component>` + `type Story = StoryObj<typeof meta>`) so `args` stay strictly typechecked when component props evolve.
- Write focused stories per meaningful UI state (`Default`, `Loading`, `Empty`, `Error`, `LongText`, `Disabled`) instead of stuffing unrelated props into one crowded canvas.
- Keep component components pure when possible: pass data via props/args rather than wiring global app routers or singletons deep inside leaf UI components.
## Interactions and accessibility
- Use `play` functions (`within(canvasElement)`, `userEvent`, `expect` from `@storybook/test`) for interactive flows (menus, modals, multi-step forms) so stories act as executable component tests.
- Enable `@storybook/addon-a11y` and resolve contrast, label, keyboard focus, and ARIA violations directly while iterating on stories.
- Provide lightweight decorators/MSW handlers only for presentational container components, cleaning up timers or mock state cleanly per story.
## Verify
Run `storybook build` cleanly (ensuring zero broken imports or docs MDX errors) plus Storybook test-runner / Vitest addon checks (`test-storybook`) against interactive `play` functions and a11y assertions.