Drop zone and picker; onChange receives an array of Files. Props: accept, multiple, disabled, label.

Props

  • labelstring
    Default: 'Choose files or drop them here'

    Drop-zone text.

  • acceptstring

    Accepted file types (native accept); dropped files that do not match are ignored too.

  • multipleboolean
    Default: false

    Allow several files.

  • onChange(files: File[]) => void

    Called with the selected files.

  • onReject(files: File[]) => void

    Called with dropped files that do not match accept.

  • clearOnSelectboolean
    Default: false

    Forget the selection after onChange: no names are listed and the same file can be chosen again.

  • disabledboolean
    Default: false

    Disable the control.