function FileDropZone
FileDropZone(unnamed 0: FileDropZoneProps): React.JSX.Element

Renders a zone that takes a dropped file, or opens the file picker on a click or Enter. Once a file is chosen, it shows its name and size and a button to remove it. Only the first of several dropped files is kept.

Parameters

Return Type

React.JSX.Element

Usage

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