Feedback & States
Rule Check Field
A passphrase field with four rule badges that fill with a check as they are met and a four-segment strength bar; a sample types itself, or type and use the eye toggle.
csslight complexitymoderate motionpointer+keyboardaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Keep the TESTS array, the update() function and the typing demo. Safe to change the rules, glyphs, sample and tokens.
Safe to edit
- tokens
- labels
Keep intact
- demo-v1 idle demo and takeover
- theme hook
- reduced-motion and visibilitychange guards
- nx37- prefix
More Feedback & States components
- Success CheckMint-green ring sweeps closed and a checkmark draws in with a springy pop and expanding halo; initial replay stops after first input; click or Space runs…
- Error ShakeDark email input shakes horizontally with decaying-sine, border flushes red, X icon pops in with overshoot spring, validation message slides up.
- Toast StackCompact notification toasts with one clear structure: status icon (check, x, exclamation, info), a short title, one muted detail line, a text action and a…
- Hold to ConfirmPress-and-hold fills a tick-marked ring; a full hold rotates the center square 45° into a verdigris check, and an early release flashes a coral cross…
- Empty StateA Bauhaus open vessel sits empty while 26 jade motes drift in a slow orbital cloud above it; poking scatters them and they spring back to settle.
- Like BurstRose-and-verdigris enamel palette: a heart spring-pops with 96 dots and ring shards. First input stops the demo; later input toggles the liked state.