IDropFileAreaProps
@spartanfx/react / index / IDropFileAreaProps
Interface: IDropFileAreaProps
Props for the DropFileArea component.
Properties
Required
Options
| Property | Type | Description |
|---|---|---|
allowedTypes? | MimeTypes[] | Optional list of accepted MIME types for validating uploaded files. If not provided, all file types are accepted. |
disabled? | boolean | Whether the component is disabled. |
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[]). |
Appearance & theming
| Property | Type | Description |
|---|---|---|
appearance? | AppearanceMode | Explicit appearance control. - auto (default): follow Fluent UI theme - light: force light mode - dark: force dark mode |