メインコンテンツまでスキップ

Variable: DropZone

const DropZone: object;

Defined in: react/src/components/DropZone/index.tsx:99

An area that takes files dropped onto it.

Type Declaration​

Root​

Root: ForwardRefExoticComponent<DropZoneProps & Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof DropZoneProps> & RefAttributes<HTMLDivElement>>;

An area that takes files dropped onto it.

To make an element you already have into a drop target, without wrapping it in anything, use the useDropZone hook this is built on.