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

0.10.7 • 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,007

Version

0.10.7

License

MIT

Unpacked Size

21.8 kB

Total Files

12

Last publish

Collaborators

  • loque-
  • steve_sims
  • petelockey
  • penx
  • marksy