0.10.7 • Published 1 year ago
@govuk-react-bjss-pttg/file-upload v0.10.7
FileUpload
Import
import FileUpload from '@govuk-react-bjss-pttg/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/
Properties
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 |
0.10.7
1 year ago