DropZone
DropZone — Prism component.
Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggleWhen to use
DropZone — Prism component.
Accessibility
Always render a visible <label> (the label prop wires htmlFor/id for you). Errors set aria-invalid and are announced via aria-describedby. Required fields expose aria-required.
Import
const { DropZone } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
title | string | — | |
hint | string | — | |
accept | string | — | Accept filter, e.g. "image/*,.pdf". |
multiple | boolean | — | |
isDisabled | boolean | — | |
onFiles | (files: FileList) => void | — | |
icon | React.ReactNode | — | Override the default upload icon. |
className | string | — |