∞ forever components

Buttons & Toggles

Two-Step Confirm

A Delete button that arms on the first press, drains a hairline timer for three seconds and confirms on a second press; Escape or timeout disarms.

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 arm, disarm and confirm state functions and the 3 s timeout in step with the drain animation. Safe to change the name, labels and the accent token.

Safe to edit

  • tokens
  • labels

Keep intact

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

confirmdeletedestructivetwo steptimerswiss

More Buttons & Toggles components

  • Magnetic ButtonGraphite pill key with a jade rim on hover; it drifts in an idle orbital float and is pulled magnetically toward the cursor with a label inner-parallax.…
  • Gooey Liquid TogglePill toggle where an SVG goo-filtered blob stretches and merges as it slides from off to on, shifting from grey to madder rose.
  • Morphing Action FABDomed saffron FAB whose plus icon rotates 135° to an X on click, fanning six machined icon discs outward in a staggered radial spring animation. Physical…
  • Material RippleDark rounded button that spawns an expanding ink ripple from the tap point; idles by firing ripples from random positions every 1.5 s.
  • Neon Glow PulseNeon-gas tube button: orange-red tube with a hot near-white core on a brushed steel backplate with two-layer shadow, standoff clips and a faint…
  • Jelly PressAurora-gradient button squashes and stretches with a spring keyframe animation on click; cycles autonomously until first deliberate input idle squish…