∞ forever components

UI Micro-interactions

Swipe Row Actions

Inbox rows slide left to reveal archive and delete icons; a long swipe archives and collapses the row with an undo button. Arrow keys and Delete work on a focused row.

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 pointer-capture drag with touch-action pan-y, the slide/archive/undo functions shared with the demo, and the inert state on removed rows. Safe to change rows and thresholds.

Safe to edit

  • tokens
  • labels
  • copy

Keep intact

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

swipelist rowarchiveundoinboxgesture

More UI Micro-interactions components

  • Add to Cart FlyNative Add button flings a product clone into a cart; first input cancels unfinished attract flights, while each manual action keeps its full 680ms flight…
  • Notification BellCast-brass SVG bell with shaded body, rim and a separate clapper swings from its crown like a decaying pendulum on click, with a faint arc wave; a domed…
  • Copy ConfirmCopy icon morphs to a drawn-stroke checkmark with a green button flash and a "Copied!" toast on click; auto-cycles as a demo loop.
  • Swipe Card StackTinder-style draggable card stack — drag the top card left/right to reveal NOPE/LIKE stamps; fling-away animates it off-screen and cycles to the next card.
  • Pull to RefreshA phone-frame list supports pointer/touch pull and a native Refresh button. First input stops attract refreshes; manual refresh completes its spinner, row…
  • Accordion ExpandThree FAQ panels smoothly expand and collapse with a CSS height transition; a chevron rotates 180 degrees to indicate open state. Auto-cycles as demo.