InlineEdit API
import { InlineEdit } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
disabled | boolean | |
editing | boolean | |
multiline | boolean | |
name | string | |
onCancel | (value: string) => void | |
onChange | (detail: { value: string; previousValue: string; source: string }) => void | |
onSave | (detail: { value: string; previousValue: string }) => void | |
onValueChange | (value: string) => void | |
placeholder | string | |
readOnly | boolean | |
value | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-inline-edit>
InlineEdit renders the ui-inline-edit custom element from @editora/ui-core, which can also be used without React.
Attributes: disabled, editing, multiline, name, placeholder, readonly, value
Events: cancel, change, editing-change, save