IDropFileAreaProps
@spartanfx/react / IDropFileAreaProps
Interface: IDropFileAreaProps
Props for the DropFileArea component.
Properties
| Property | Type | Description |
|---|---|---|
allowedTypes? | MimeTypes[] | Optional list of accepted MIME types for validating uploaded files. If not provided, all file types are accepted. |
appearance? | AppearanceMode | Explicit appearance control. - auto (default): follow Fluent UI theme - light: force light mode - dark: force dark mode |
disabled? | boolean | Whether the component is disabled. |
error | string | Error message string to display below the drop area. |
helperText? | string | Optional helper text displayed below the main label. |
label? | string | Optional custom label for the drop area. |
maxFiles? | number | Optional cap (mainly useful in multiple mode). |
multiple? | boolean | If false/undefined, keeps at most 1 file (still returns File[]). |
onChange | (files) => void | Callback function triggered when a file is selected or dropped. |
selectedFiles | File[] | The currently selected file. |
setError | (msg) => void | Function to update the error message. |