npm.io
0.10.7 • Published 2 years ago

@govuk-react/file-upload

Licence
MIT
Version
0.10.7
Deps
5
Size
21 kB
Vulns
0
Weekly
0

FileUpload

Import

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

Help users select and upload a file.

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