generate_story
Generate a Storybook CSF3 story file for a web component using its CEM declaration. Produces TypeScript source with argTypes, default args, render function, and named story exports.
Instructions
Generates a Storybook CSF3 story file for a web component based on its CEM declaration. Returns TypeScript source ready to paste into a .stories.ts file, with argTypes, default args, a render function, and named story exports for each variant value.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | No | Optional library ID to target a specific loaded library instead of the default. | |
| tagName | Yes | The custom element tag name (e.g. "my-button"). |