FileUploadField
packages/ui/src/components/data/FileUploadField.tsx
Import
Subpath export:
@marktiderman/genesis-ui/dataimport { FileUploadField } from "@marktiderman/genesis-ui/data";Components
Auto-generated from TypeScript source via
react-docgen-typescript.FileUploadField
| Prop | Type | Default | Description |
|---|---|---|---|
| field* | ResourceFormFieldDef | — | |
| onChange* | (value: File | File[] | null) => void | — | |
| value* | File | File[] | null | — | |
| aria-describedby | string | — | |
| aria-invalid | boolean | — | |
| aria-labelledby | string | — | The label's id. The drop zone is what takes keyboard focus (the input is hidden), so it is named by `aria-labelledby` rather than `htmlFor`. |
| aria-required | boolean | — | |
| disabled | boolean | — | |
| id | string | — | Id for the file input, so a `<label htmlFor>` names it. |