storybook

Solid

Storybook configuration, stories, addons, interaction testing, and documentation.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
53
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Storybook Skill Expert assistance for component development with Storybook. ## Capabilities - Configure Storybook - Write component stories - Add interaction testing - Configure addons - Generate documentation ## Story Patterns ```typescript import type { Meta, StoryObj } from '@storybook/react'; import { Button } from './Button'; const meta: Meta<typeof Button> = { title: 'Components/Button', component: Button, tags: ['autodocs'], argTypes: { variant: { control: 'select', options: ['primary', 'secondary'] }, size: { control: 'select', options: ['sm', 'md', 'lg'] }, }, }; export default meta; type Story = StoryObj<typeof Button>; export const Primary: Story = { args: { variant: 'primary', children: 'Click me', }, }; export const WithInteraction: Story = { args: { children: 'Click me' }, play: async ({ canvasElement }) => { const canvas = within(canvasElement); await userEvent.click(canvas.getByRole('button')); }, }; ``` ## Target Processes - component-library - design-system - documentation

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills