A password field with a live strength meter: four segments fill as the password improves, the colour walks from red to green, a label names the level, and a checklist ticks off length, case, digit and symbol rules as they are met. An eye button toggles visibility without losing focus or caret position.
Score = rules met (length ≥ 8, upper + lower, digit, symbol) plus 1 if length ≥ 12, capped at 4; segments ≤ score fill with the level colour (red, orange, yellow, green) over 0.25 s; the label crossfades; each rule row toggles a check (stroke draw 0.25 s) and its text colour. The eye swaps `type` and restores `selectionStart/End`.
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.