Saves the trimmed text, and shows it: the field closes once it resolves.
A thrown error, such as expectOk's, stays open under the field. A text
left as it was closes the field without calling it.
Type
(value: string) => Promise<void>
Usage
import { type InlineEditProps } from "src/components/form/InlineEdit.tsx";