∞ forever components

UI Micro-interactions

Inline Edit Field

A settings row swaps its name for an input in place, saves with three dots then a drawn tick, and shakes on an empty name. Pencil, Enter, Escape and buttons operate it.

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 read-only input that shares metrics with the edit state so nothing jumps, and the setMode/commit/cancel functions the demo also calls. Safe to change names, labels and timings.

Safe to edit

  • tokens
  • labels
  • copy

Keep intact

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

inline editrenametext fieldsave tickvalidationsettings row

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.