delimit_story_generate
Scaffold per-variant .stories.tsx files for React/TSX components by specifying the component path and optional variants, bypassing full Storybook toolchain.
Instructions
Generate a .stories.tsx file for a UI component (no Storybook required).
When to use: to scaffold per-variant stories for a React/TSX component without installing the full Storybook toolchain. When NOT to use: for accessibility checks (use delimit_story_accessibility) or component scaffolding from scratch (delimit_design_generate_component).
Sibling contrast: delimit_design_generate_component creates the component; this generates its stories file. Together they form a component-first authoring path.
Side effects: writes a new .stories.tsx file next to the component. Coerces variants from a comma string to a list via _coerce_list_arg.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component_path | Yes | Path to the component (.tsx) file. Required. | |
| story_name | No | Custom story name. Default = component name. | |
| variants | No | Variants to generate (e.g. "Default,WithChildren"). Default = ["Default", "WithChildren"]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||