Aliases
editable text, inline rename
InlineEditText display that opens an editor with save and cancel actions.
Aliases
editable text, inline rename
Foundations
InlineEdit for short renames, labels, and inline metadata edits.InlineEdit for long-form editing or rich text.read state
display Non-editing surface that shows the committed value.
active editor
field Input or textarea that appears while editing.
commit controls
actions Save and cancel controls for multiline editing.
| Name | Type | Default | Description |
|---|---|---|---|
value | string | — | Controlled committed value. |
label | string | — | Visible label for the inline editor. |
description | string | — | Supporting helper copy. |
placeholder | string | — | Placeholder shown when the value is empty. |
disabled | boolean | false | Disables entry into editing mode. |
multiline | boolean | false | Switches the editor into textarea mode. |
onChange | (detail: { value: string }) => void | — | Callback fired while the draft changes. |
onCommit | (detail: { value: string }) => void | — | Runs when the edit is committed. |
onCancel | (detail: { value: string }) => void | — | Runs when editing is canceled. |
theme | ThemeContract | — | Sets the theme used to resolve component styles. |
| Name | Payload | Description |
|---|---|---|
change | { value: string } | Fires while the draft changes. |
commit | { value: string } | Fires when the edit is committed. |
cancel | { value: string } | Fires when the edit is canceled. |
| Name | Description |
|---|---|
default | InlineEdit is prop-driven and does not expose slot-based adornments. |
Variants
single-line: Commit on blur or Enter for quick scalar edits.multiline: Save and cancel controls for multiline edits.Sizes
default: InlineEdit uses one compact density tuned for in-place editing.States
display: Committed display stateediting: User is actively editing the valueSemantics
Keyboard
Screen readers
Checklist
Click the label to enter editing mode without leaving the page.
<InlineEdit label="Project name" value="Launch roadmap" onCommit={(detail) => saveName(detail.value)} /> Multiline mode provides save and cancel controls.
<InlineEdit multiline={true} label="Release note" value="Add rollout caveats here." /> Disable the editor when the current user can review but not change the value.
<InlineEdit label="Project name" value="Launch roadmap" disabled={true} /> Calculated fixtures; browser evidence is not collected. Layout estimates use declared text behavior and maximum token values.
size=md