@govuk-react/file-upload
TypeScript icon, indicating that this package has built-in type declarations

0.10.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @govuk-react/file-upload

Weekly Downloads

3,598

Version

0.10.6

License

MIT

Unpacked Size

22.3 kB

Total Files

13

Last publish

Collaborators

  • loque-
  • steve_sims
  • petelockey
  • penx
  • marksy