Text that turns into an input when you click it, like a document title. Enter or leaving the field saves, Escape cancels.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | Current text. Set it to control the component. | |
| defaultValue | string | "" | Starting text when uncontrolled. |
| onValueChange | (value: string) => void | Called with the new text when an edit is saved. | |
| placeholder | string | "Click to edit" | Shown when the text is empty. |
| aria-label | string | Required: names the field for screen readers. | |
| className | string | Extra classes added to the text and the input. |