Skip to main content
Version: Next

InlineEdit API

import { InlineEdit } from '@editora/ui-react';

Props​

PropTypeDescription
disabledboolean
editingboolean
multilineboolean
namestring
onCancel(value: string) => void
onChange(detail: { value: string; previousValue: string; source: string }) => void
onSave(detail: { value: string; previousValue: string }) => void
onValueChange(value: string) => void
placeholderstring
readOnlyboolean
valuestring

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