scaffold_component
Generate a complete Helix-pattern web component scaffold including Lit class, CEM annotations, test stub, Storybook story, and CSS. Auto-detects tag prefix and base class from the library's Custom Elements Manifest.
Instructions
Generate a complete Helix-pattern web component scaffold: Lit class with decorators, CEM annotations (@slot, @csspart, @fires), Vitest test stub, Storybook CSF3 story, and CSS structure. Conventions (tag prefix, base class) are auto-detected from the library CEM so the generated code matches existing library patterns.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagName | Yes | Custom element tag name (e.g. "hx-button"). Must be lowercase and contain a hyphen. | |
| baseClass | No | Base class to extend (e.g. "LitElement"). If omitted, detected from the CEM or defaults to "LitElement". | |
| slots | No | Slots to expose. Use name "" or "default" for the unnamed default slot. | |
| cssParts | No | CSS parts to expose via ::part(). | |
| events | No | Custom events to dispatch. | |
| properties | No | Reactive properties / attributes to declare. |