@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

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @govuk-react/file-upload

    Weekly Downloads

    2,953

    Version

    0.10.6

    License

    MIT

    Unpacked Size

    22.3 kB

    Total Files

    13

    Last publish

    Collaborators

    • loque-
    • steve_sims
    • petelockey
    • penx
    • marksy