Inline edit
Text that becomes editable in place, with a pencil as the hint.
Platformeu-central-1
When to use
- Renaming a project, document or item without opening a form.
- Single-line values that are changed occasionally.
When not to use
- Several fields change together; use a form.
- The value needs validation messages; use a field.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/inline-edit
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
InlineEdit
5 props
PropTypeDefault
label *string—
valuestring—
defaultValuestring""
onValueChange((value: string) => void)—
classNamestring—
Keyboard
- Enter
- Activates the focused control.
- Escape
- Closes or cancels, then returns focus to where it came from.
Accessibility
It is built on native elements and keeps aria-label and aria-hidden in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/inline-edit.mdThe index of every part is at /llms.txt.