function InlineEditField
InlineEditField(unnamed 0: InlineEditFieldProps): React.JSX.Element

Renders the field holding value, focused with the caret at its end, and Save and Cancel under it. Enter saves a line, Ctrl/Cmd+Enter a Markdown text, Escape leaves. Saving is refused while the text is empty and required, or longer than maxLength. It is mounted afresh on each opening, so that it starts from value.

Parameters

Return Type

React.JSX.Element

Usage

import { InlineEditField } from "src/components/form/InlineEdit.tsx";