EditableTextBaseProps
Defined in: src/components/primitives/EditableText/EditableText.types.ts:64
Properties
Section titled “Properties”activationMode?
Section titled “activationMode?”
optionalactivationMode?:EditableTextActivationMode
Defined in: src/components/primitives/EditableText/EditableText.types.ts:127
How a pointer starts an edit session.
Default
Section titled “Default”'single'align?
Section titled “align?”
optionalalign?:TextAlign
Defined in: src/components/primitives/EditableText/EditableText.types.ts:115
Text alignment, matching Text.
aria-label?
Section titled “aria-label?”
optionalaria-label?:string
Defined in: src/components/primitives/EditableText/EditableText.types.ts:168
Explicit accessible name. Wins over the value/placeholder-derived name and
over labels.editLabel.
optionalas?:TextElement
Defined in: src/components/primitives/EditableText/EditableText.types.ts:91
HTML element rendered for the display (idle) state.
Default
Section titled “Default”'span'className?
Section titled “className?”
optionalclassName?:string
Defined in: src/components/primitives/EditableText/EditableText.types.ts:180
Additional CSS class name applied to the current root element.
color?
Section titled “color?”
optionalcolor?:TextColor
Defined in: src/components/primitives/EditableText/EditableText.types.ts:109
Text color, matching Text.
Default
Section titled “Default”'primary'defaultValue?
Section titled “defaultValue?”
optionaldefaultValue?:string
Defined in: src/components/primitives/EditableText/EditableText.types.ts:73
Initial committed value (uncontrolled).
disabled?
Section titled “disabled?”
optionaldisabled?:boolean
Defined in: src/components/primitives/EditableText/EditableText.types.ts:134
Disable the field entirely — no editing, no hover affordance, not focusable.
Default
Section titled “Default”falselabels?
Section titled “labels?”
optionallabels?:Partial<EditableTextLabels>
Defined in: src/components/primitives/EditableText/EditableText.types.ts:162
String overrides for localization. Pass a stable reference (memoize it) — it is low-frequency config.
lineHeight?
Section titled “lineHeight?”
optionallineHeight?:TextLineHeight
Defined in: src/components/primitives/EditableText/EditableText.types.ts:112
Line height, matching Text.
maxLength?
Section titled “maxLength?”
optionalmaxLength?:number
Defined in: src/components/primitives/EditableText/EditableText.types.ts:156
Maximum number of characters accepted by the edit field.
optionalmono?:boolean
Defined in: src/components/primitives/EditableText/EditableText.types.ts:121
Use the monospace font family (also implied by variant="code").
onChange?
Section titled “onChange?”
optionalonChange?: (value) =>void
Defined in: src/components/primitives/EditableText/EditableText.types.ts:79
Called with the new value when an edit is committed. Fires on commit only (Enter / blur), not on every keystroke.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
onEditEnd?
Section titled “onEditEnd?”
optionalonEditEnd?: (reason) =>void
Defined in: src/components/primitives/EditableText/EditableText.types.ts:174
Called when an edit session ends, with the reason.
Parameters
Section titled “Parameters”reason
Section titled “reason”Returns
Section titled “Returns”void
onEditStart?
Section titled “onEditStart?”
optionalonEditStart?: () =>void
Defined in: src/components/primitives/EditableText/EditableText.types.ts:171
Called when an edit session starts.
Returns
Section titled “Returns”void
onKeyDown?
Section titled “onKeyDown?”
optionalonKeyDown?: (event) =>void
Defined in: src/components/primitives/EditableText/EditableText.types.ts:177
Key-down handler forwarded to the edit field (runs after built-ins).
Parameters
Section titled “Parameters”KeyboardEvent<HTMLInputElement>
Returns
Section titled “Returns”void
placeholder?
Section titled “placeholder?”
optionalplaceholder?:string
Defined in: src/components/primitives/EditableText/EditableText.types.ts:85
Placeholder shown when the value is empty, both in the display and the edit field. Rendered in the muted placeholder color.
readOnly?
Section titled “readOnly?”
optionalreadOnly?:boolean
Defined in: src/components/primitives/EditableText/EditableText.types.ts:140
Render the value but do not allow editing. Still selectable/focusable.
Default
Section titled “Default”false
optionalref?:Ref<EditableTextHandle>
Defined in: src/components/primitives/EditableText/EditableText.types.ts:189
Imperative handle — see EditableTextHandle.
selectOnEdit?
Section titled “selectOnEdit?”
optionalselectOnEdit?:boolean
Defined in: src/components/primitives/EditableText/EditableText.types.ts:146
Select the whole value when an edit session starts.
Default
Section titled “Default”true
optionalsize?:TextSize
Defined in: src/components/primitives/EditableText/EditableText.types.ts:100
Text size, matching Text. Overrides the variant size.
style?
Section titled “style?”
optionalstyle?:CSSProperties
Defined in: src/components/primitives/EditableText/EditableText.types.ts:183
Inline styles applied to the current root element.
submitOnBlur?
Section titled “submitOnBlur?”
optionalsubmitOnBlur?:boolean
Defined in: src/components/primitives/EditableText/EditableText.types.ts:153
Commit the draft when the edit field loses focus. When false, blurring
discards the draft instead.
Default
Section titled “Default”truetestId?
Section titled “testId?”
optionaltestId?:string
Defined in: src/components/primitives/EditableText/EditableText.types.ts:186
Test identifier for automated testing.
truncate?
Section titled “truncate?”
optionaltruncate?:boolean
Defined in: src/components/primitives/EditableText/EditableText.types.ts:118
Truncate the display text with an ellipsis on overflow.
value?
Section titled “value?”
optionalvalue?:string
Defined in: src/components/primitives/EditableText/EditableText.types.ts:68
The committed text value (controlled).
variant?
Section titled “variant?”
optionalvariant?:TextVariant
Defined in: src/components/primitives/EditableText/EditableText.types.ts:97
Semantic typography variant, matching Text.
Default
Section titled “Default”'body'weight?
Section titled “weight?”
optionalweight?:TextWeight
Defined in: src/components/primitives/EditableText/EditableText.types.ts:103
Text weight, matching Text. Overrides the variant weight.