Inline edit

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.

InlineEdit3D props

PropTypeDefaultDescription
valuestringCurrent text. Set it to control the component.
defaultValuestring""Starting text when uncontrolled.
onValueChange(value: string) => voidCalled with the new text when an edit is saved.
placeholderstring"Click to edit"Shown when the text is empty.
aria-labelstringRequired: names the field for screen readers.
classNamestringExtra classes added to the text and the input.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks