File input component with label expected as children.
FileUpload
==========
js
import FileUpload from '@govuk-react/file-upload';
`
Help users select and upload a file.
- https://govuk-react.github.io/govuk-react/?path=/docs/file-upload
- https://design-system.service.gov.uk/components/file-upload/
$3
Prop | Required | Default | Type | Description
:--- | :------- | :------ | :--- | :----------
acceptedFormats | | `undefined` | string |
error | | | boolean | Apply error state styling to the component
hint | | `undefined` | string | Optional hint text
key | | | Key |
margin | | | Margin \| Margin[] |
mb | | | string \| number |
meta | | `{}` | { error?: string \| string[]; touched?: boolean; } | Final form meta object, pending adjustment/removal
name | | `undefined` | string |
onChange | | `undefined` | ChangeEventHandler |
padding | | | Padding \| Padding[] |
ref` | | | Ref