pub fn FileDropZone(_: FileDropZoneProps) -> ElementExpand description
A zone that accepts files dragged in from the operating system.
Independent of DndContext — file drops don’t come from inside your app,
so no provider is required.
§Props
For details, see the props struct definition.
filter:Option<FileFilter>Acceptance rules; everything is accepted when omitted.
on_files:EventHandler<FileDrop>Fired with the accepted files of a drop (only if at least one passed).
on_rejected:Option<EventHandler<Vec<(FileData,FileRejection)>>>Fired with the rejected files of a drop, if any.
on_hover:Option<EventHandler<bool>>Fired with
truewhen a drag hovers the zone,falsewhen it leaves.attributes:Vec<Attribute>children:Element