0.10.7 • Published 1 year ago

@govuk-react-bjss-pttg/file-upload v0.10.7

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

FileUpload

Import

  import FileUpload from '@govuk-react-bjss-pttg/file-upload';

Help users select and upload a file.

Properties

PropRequiredDefaultTypeDescription
acceptedFormatsundefinedstring
errorbooleanApply error state styling to the component
hintundefinedstringOptional hint text
keyKey
marginMargin | Margin[]
mbstring | number
meta{}{ error?: string | string[]; touched?: boolean; }Final form meta object, pending adjustment/removal
nameundefinedstring
onChangeundefinedChangeEventHandler
paddingPadding | Padding[]
refRef