Back to Components
Components
Inline Edit
Click to edit inline text with enter to save and escape to cancel.
Saved value: Click to rename
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/inline-edit.tsx
Installation
Using shadcn CLI
npx shadcn add inline-edit --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge