defaultValue
Description
The initial value of the Editable in both edit & preview mode.
Type
stringLeave Yamada UI a star
StarEditable is a component used to obtain inline editable text input.
Description
The initial value of the Editable in both edit & preview mode.
Type
stringDescription
If true, the form control will be disabled.
Type
booleanDefault
falseDescription
The border color when the input is invalid.
Type
"border" | "link" | BorderColor | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | ... 319 more ... | [...]Description
The border color when the input is focused.
Type
"border" | "link" | BorderColor | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | ... 319 more ... | [...]Description
If true, the form control will be invalid.
Type
booleanDefault
falseDescription
If true, the form control will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true, the form control will be invalid.
Deprecated
Use invalid instead.
Type
booleanDefault
falseDescription
If true, the read only view, has a tabIndex set to 0
so it can receive focus via the keyboard or click.
Deprecated
Use previewFocusable instead.
Type
booleanDefault
trueDescription
If true, the form control will be readonly.
Deprecated
Use readOnly instead.
Type
booleanDefault
falseDescription
If true, the form control will be required.
Deprecated
Use required instead.
Type
booleanDefault
falseDescription
Callback invoked when user cancels input with the Esc key.
It provides the last confirmed value as argument.
Type
(preValue: string) => voidDescription
A callback invoked when user changes input.
Type
(value: string) => voidDescription
A callback invoked once the user enters edit mode.
Type
() => voidDescription
A callback invoked when user confirms value with enter key or by blurring input.
Type
(value: string) => voidDescription
The placeholder text when the value is empty.
Type
stringDescription
If true, the read only view, has a tabIndex set to 0
so it can receive focus via the keyboard or click.
Type
booleanDefault
trueDescription
If true, the form control will be readonly.
Type
booleanDefault
falseDescription
If true, the form control will be required.
Type
booleanDefault
falseDescription
If true, the input's text will be highlighted on focus.
Type
booleanDefault
trueDescription
If true, the Editable will start with edit mode by default.
Type
booleanDescription
If true, it'll update the value onBlur and turn off the edit mode.
Type
booleanDefault
trueDescription
The value of the Editable in both edit & preview mode.
Type
stringDescription
The initial value of the Editable in both edit & preview mode.
Type
stringDescription
If true, the form control will be disabled.
Type
booleanDefault
falseDescription
If true, the form control will be invalid.
Type
booleanDefault
falseDescription
If true, the form control will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true, the form control will be invalid.
Deprecated
Use invalid instead.
Type
booleanDefault
falseDescription
If true, the read only view, has a tabIndex set to 0
so it can receive focus via the keyboard or click.
Deprecated
Use previewFocusable instead.
Type
booleanDefault
trueDescription
If true, the form control will be readonly.
Deprecated
Use readOnly instead.
Type
booleanDefault
falseDescription
If true, the form control will be required.
Deprecated
Use required instead.
Type
booleanDefault
falseDescription
Callback invoked when user cancels input with the Esc key.
It provides the last confirmed value as argument.
Type
(preValue: string) => voidDescription
A callback invoked when user changes input.
Type
(value: string) => voidDescription
A callback invoked once the user enters edit mode.
Type
() => voidDescription
A callback invoked when user confirms value with enter key or by blurring input.
Type
(value: string) => voidDescription
The placeholder text when the value is empty.
Type
stringDescription
If true, the read only view, has a tabIndex set to 0
so it can receive focus via the keyboard or click.
Type
booleanDefault
trueDescription
If true, the form control will be readonly.
Type
booleanDefault
falseDescription
If true, the form control will be required.
Type
booleanDefault
falseDescription
If true, the input's text will be highlighted on focus.
Type
booleanDefault
trueDescription
If true, the Editable will start with edit mode by default.
Type
booleanDescription
If true, it'll update the value onBlur and turn off the edit mode.
Type
booleanDefault
trueDescription
The value of the Editable in both edit & preview mode.
Type
stringEdit this page on GitHub