Component demo // Wizard
Metadata and variants keep generated UI consistent.
The component wizard pattern documents name, tier, dependencies and theme requirements so every generated snippet matches the Library examples exactly.
Act II // Variant switches
Size, emphasis and layout switches generate all permutations.
Variants are declared as enum arrays. The wizard generates every valid combination so the lab can render and snapshot each one automatically.
"size": ["sm", "md", "lg"]
"emphasis": ["primary", "secondary", "ghost"]
"layout": ["inline", "block", "full-width"]
Enumerate, don’t infer.
Every valid combination must be declared so edge cases are tested explicitly.
Act III // HTML output
Generated snippets that match Library examples exactly.
The wizard outputs HTML fragments with the correct class names, attributes and ARIA roles. Paste directly into pages or use as test fixtures.
<button class="vl-btn vl-btn--primary vl-btn--lg"
vl-effect="hover-depth-press">
Get started
</button>
Act IV // Applied wizard
Metadata, variants and output: one pipeline from spec to snippet.
Declare the record, enumerate variants, then generate HTML that matches the Library on the first pass.