Skip to content
Design System
GitHub

Text that reads as plain text until it is edited in place: a click, Enter or F2 turns it into a field of the same size, Enter or leaving the field saves, Esc puts the text back.

API reference

Generated from the types. Every part also takes className.

InlineEdit

valuerequired
stringThe saved text. The component shows it and never keeps its own copy once editing ends.
onChangerequired
(value: string) => voidCalled once on Enter or blur with the trimmed new text; not when it is empty or unchanged.
labelrequired
stringWhat editing does ("Rename dataset"): the field's name, and the button's description at rest.
maxLength
number