Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
fandhe-ai avatar

Storybook

  • 51 installs
  • 2 repo stars
  • Updated August 3, 2026
  • fandhe-ai/agent-reference-skills

Helps with ai & agent building tasks.

About

storybook is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • storybook
  • AI & Agent Building
  • AI-coding skill

Storybook by the numbers

  • 51 all-time installs (skills.sh)
  • Ranked #7,219 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill storybook

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs51
repo stars2
Last updatedAugust 3, 2026
Repositoryfandhe-ai/agent-reference-skills

What it does

Helps with ai & agent building tasks.

Files

references/api/arg-types.mdMarkdownGitHub ↗

ArgTypes

Specify arg behavior, constrain acceptable values, and configure the Controls panel and documentation.

Overview

ArgTypes can be defined at three levels: story, component (meta), or project (preview.ts). Storybook automatically infers argTypes from the component using framework-specific tools (react-docgen, vue-docgen-api, compodoc, etc.). Manually specified values override inferred ones.

Usage

const meta = {
  component: Button,
  argTypes: {
    variant: {
      control: 'select',
      options: ['primary', 'secondary', 'danger'],
      description: 'Visual style of the button',
      table: { category: 'Appearance' },
    },
    onClick: { action: 'clicked' },
    disabled: { control: 'boolean' },
  },
} satisfies Meta<typeof Button>;

Properties

control

Configures the Controls panel UI. Can be a string shorthand or an object.

ValueRenders
'boolean'Toggle
'number'Number input
'range'Slider
'text'Text input
'color'Color picker
'date'Date picker
'select'Select dropdown
'multi-select'Multi-select
'radio'Radio buttons
'inline-radio'Inline radio buttons
'check'Checkboxes
'inline-check'Inline checkboxes
'object'JSON editor
'file'File upload
falseDisable control

Object form options: type, accept (MIME types), labels, min, max, step, presetColors

description

string — Describes the arg's purpose in the docs panel.

if

Conditionally renders the control based on another arg or global value.

argTypes: {
  secondaryLabel: {
    if: { arg: 'variant', eq: 'secondary' },
  },
}
Sub-fieldTypeDescription
argstringWatch this arg name
globalstringWatch this global name
eqanyShow when value equals
neqanyShow when value does not equal
existsbooleanShow when arg exists (or not)
truthybooleanShow when arg is truthy (or falsy)

mapping

Maps string option keys to actual values (useful for non-primitive types like JSX elements).

argTypes: {
  icon: {
    options: ['home', 'settings'],
    mapping: { home: <HomeIcon />, settings: <SettingsIcon /> },
  },
}

name

string — Overrides the displayed argType name. Use cautiously to avoid confusion with actual prop names.

options

any[] — Array of allowed values. Used with control to determine the appropriate UI widget.

table

Documentation metadata for the Args table.

Sub-fieldTypeDescription
categorystringGroup label
subcategorystringNested group label
defaultValue{ summary, detail }Documented default value
disablebooleanHide from tables
type{ summary, detail }Documented type information
readonlybooleanMark as read-only

type

Semantic type using SBType structure.

  • Scalars: 'boolean' | 'string' | 'number' | 'function' | 'symbol'
  • Collections: array, object, enum, union, intersection

Notes

  • defaultValue is deprecated — define defaults in args instead
  • Story-level argTypes override component-level which override project-level

Related

  • CSF
  • Parameters

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.