Editable Heading
Editable heading allows user to edit the name of some resource in the same place as it's displayed.
#
#
#
The preview value and input should automatically fit the parent container's space. If a specific width is wanted, use the width prop.
#
#
The editable heading has a skeleton state.
#
#
#
- As a quick way to edit the name of some resource, without redirecting to a dedicated settings page.
#
Inherits margin props.
| Name | Default | Description |
|---|---|---|
inputProps | — | Pick<InputProps, "maxLength" | "minLength">The input props |
isDisabled | false | booleanDetermines if heading is editable. |
placeholder | — | stringThe placeholder text to use when the field is empty. |
size | "md" | "md" | "lg"Size of the heading. |
value | — | stringHeading value. |
width | undefined | "100%" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl"Width of the component. |
onChange | — | (value: string) => voidCallback invoked when user confirms the new value. |
onCancel | — | (value: string) => voidCallback invoked when user cancels input with the `Esc` key. It provides the last confirmed value as argument. |