interface FileDropZoneProps

Passed to FileDropZone by FileField, from the form's state. The zone keeps no file of its own.

Properties

file: File | null
onChange: (file: File | null) => void

Called with the file dropped or picked, or with null when it is removed.

optional
disabled: boolean
optional
hint: string

Replaces the "Drop a file here" prompt.

optional
maxBytes: number

Stated under the prompt when showLimit is on. FileField refuses a larger file.

optional
showLimit: boolean

Usage

import { type FileDropZoneProps } from "src/components/form/FileDropZone.tsx";