Feedback & States
Nested Square Hold Delete
Stone-and-parchment terracotta register: typing quadra builds nested squares; holding Delete contracts the geometry.
canvasmedium complexitymoderate motionclickmobile-readyaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
A reversible confirmation pattern with animated removal feedback.
When not to
Actual destructive actions without connecting validated server-side permission and recovery rules.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Adapt content through existing data arrays; retain named palette, controls and demo-v1 lifecycle.
Safe to edit
- Dark/light palette tokens
- Sample data and visible labels
- Animation timing and geometry
Keep intact
- IIFE and namespaced CSS/IDs
- Initial Manual mode; sticky first-input takeover
- Theme URL/message hook; redraw canvas palette
- Keyboard/focus/live status; reduced motion; hidden pause
Known limitations
- Illustrative data; local state resets on remount.
- Client-side delete/restore demo; no backend deletion.
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.