property InlineEditFieldProps.onSave

Saves the trimmed text. The field closes once it is done, and stays open under the error it throws. A text left as it was isn't passed to it.

Type

(value: string) => Promise<void> | void

Usage

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