∞ forever components

Feedback & States

Success Receipt

A $48 pay button draws a check, then the card unfolds into a short receipt with two line items and a total; a chevron button folds it back.

csslight complexitymoderate motionpointer+keyboardaccessible

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Keep the grid-rows fold, the staggered rise variables and the doPay/doDone functions shared with the demo. Safe to change items, amounts and tokens.

Safe to edit

  • tokens
  • labels
  • copy

Keep intact

  • demo-v1 idle demo and takeover
  • theme hook
  • reduced-motion and visibilitychange guards
  • nx36- prefix

receiptpaymentsuccesscheckoutconfirmationpaper

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.