Renders the title field of the dump creation modal, read-only until the poster chooses to edit it.
f
TitleField(unnamed 0: TitleFieldProps): React.JSX.Element
Renders the title of a link or file dump. The suggested title, from the link's preview or the file's name, stays read-only until the ✎ button is pressed, so stray typing can't change it.
I
TitleFieldProps
Passed to TitleField by DumpCreateModal, which owns the editing
state: it marks the title as the poster's own on onEdit.
- disabled: boolean
- editing: boolean
- onEdit: () => void
-
onReset: () => void
Puts the suggested title back. Without it, no reset button shows.
- registration: UseFormRegisterReturn<"title">
Usage
import * as mod from "src/components/dump/create/TitleField.tsx";