Spectrum Design Data
  • Components
  • Tokens
  • Registry
  • AI
  • Tools
  • Drop zone

    Spectrum docs

    A drop zone allows users to drag and drop files or other content into a designated area.

    Property Type Values Default Required Description
    accept array - - No -
    size string s, m, l m No -
    actionLabel string - - No If undefined, this button does not appear.
    onDrop string - - No Callback function called when files are dropped onto the drop zone.
    onDragOver string - - No Callback function called when a file is dragged over the drop zone.
    onDragLeave string - - No Callback function called when a file is dragged out of the drop zone.