Form components
File
File uploads with accept filters and size/count constraints.
Stores File[] | null.
Preview
Live
Options
| Prop | Type | Default | Description |
|---|---|---|---|
| accept | Record<string, string[]> | — | Accepted MIME types mapped to extensions, e.g. { "image/*": [".png", ".jpg"] }. |
| multiple | boolean | — | Allow selecting more than one file. |
| maxFiles | number | — | Maximum number of files. |
| maxSizeMB | number | — | Maximum size per file, in megabytes. |
| minSizeMB | number | — | Minimum size per file, in megabytes. |
Client-side size and type constraints are a UX convenience, not a security boundary. Always re-validate uploads on the server. See Security.