A dropdown menu anchored to its button: it unfolds from the top edge with a scale from the anchor side, items highlight as you move or arrow through them, a destructive item sits apart in red, and clicking outside, Escape or choosing an item closes it. Built on the Popover API with a positioning fallback.
Open: `transform-origin: top` (or bottom when flipped), `scale(0.96) translateY(−4px) → 1` with opacity over 0.18 s `cubic-bezier(.2,.8,.2,1)`, using `@starting-style` so the entry transition runs on `:popover-open`. Position: `left` = anchor left (clamped to viewport), `top` = anchor bottom + 6. Arrow keys move focus between `menuitem`s; Home/End jump; typing a letter jumps to the matching item.
From prompt to a block in your page.
The preview is the shipped element inside a neutral demo page. Hover, click, focus: the one interaction it is about is live.
Token sets re-tint it live. The prompt carries the one you chose.
A paste-in snippet, or a component for Next.js, React, Vue, Astro, WordPress, Shopify or Webflow.
It quotes the markup, styles and script verbatim with the tokens and the rules that keep it self-contained.
It inherits your page's font and width; the tokens live on :root; several instances share one script.