Inline edit

controlsFreeMIT

Text that turns into a field in place, saved with Enter and cancelled with Escape.

Adapted from Watermelon UI (MIT) and rewritten with keyboard support, labels and reduced motion.

npx shadcn@latest add https://mikkelmanniche.dk/lab/r/inline-edit.json
Width

Preview

The preview could not load.

Live demo in the dark theme.

Details

Files

  • inline-edit.tsx