DropZoneSlotProps
DropZoneSlotProps =
object
Defined in: packages/ui/src/types.ts:339
Props for the drop zone plugin slot.
The low-level slot for drag-and-drop file upload areas. Handles drag state feedback, file validation, and click-to-browse. Use DropZoneProps in application code; this type is for plugin implementors.
- DropZoneProps for the high-level component props.
- UIPluginComponents for the slot registration point.
Properties
Section titled “Properties”accept?
Section titled “accept?”
optionalaccept:string
Defined in: packages/ui/src/types.ts:355
MIME type filter for accepted files.
children
Section titled “children”children:
ReactNode
Defined in: packages/ui/src/types.ts:341
Drop zone content (instructions or file preview).
isDragOver
Section titled “isDragOver”isDragOver:
boolean
Defined in: packages/ui/src/types.ts:343
Whether a file is currently being dragged over the zone.
isInvalid
Section titled “isInvalid”isInvalid:
boolean
Defined in: packages/ui/src/types.ts:345
Whether the dragged file is invalid (wrong type).
onClick()
Section titled “onClick()”onClick: () =>
void
Defined in: packages/ui/src/types.ts:353
Handler called when the zone is clicked (opens file picker).
Returns
Section titled “Returns”void
onDragLeave()
Section titled “onDragLeave()”onDragLeave: () =>
void
Defined in: packages/ui/src/types.ts:351
Handler called when the drag leaves the zone.
Returns
Section titled “Returns”void
onDragOver()
Section titled “onDragOver()”onDragOver: (
e) =>void
Defined in: packages/ui/src/types.ts:349
Handler called during dragover for visual feedback.
Parameters
Section titled “Parameters”React.DragEvent
Returns
Section titled “Returns”void
onDrop()
Section titled “onDrop()”onDrop: (
files) =>void
Defined in: packages/ui/src/types.ts:347
Handler called when files are dropped.
Parameters
Section titled “Parameters”FileList
Returns
Section titled “Returns”void