FileInput
Select local files with a picker button, a compact control, or a dropzone.
Basic usage
Specify the accepted types and use ValueText to show the selection. Selected files appear in FormData as File objects. Validate them on the server when submitting data.
No file selected
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
variant | button | boxed | compact | button |
accept | string | MIME type map | — |
multiple | boolean | false |
maxFiles | number | 1 in single-file mode |
onFileChange | (details) => void | — |
name | string | — |