Skip to content

Drop zone

Accepts files that you drag and drop onto it.

Drop files here
    drop-zone-basic-demo.tsx

    Installation

    The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

    Composition

    • DropZone
      • DropZoneIconOptional
      • DropZoneLabel
      • DropZoneDescriptionOptional
      • FileTriggerOptional

        Install File trigger separately.

    Accepted file types

    Use getDropOperation to accept or cancel a drop. Also install File trigger.

    Drop images or PDFs here

    PNG, JPEG, or PDF

      drop-zone-demo.tsx

      API reference

      Drop zone takes the props of React Aria DropZone (opens in a new tab).