Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@govuk-react/file-upload

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/file-upload

File input component with label expected as children.

  • 0.10.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6.1K
decreased by-2.01%
Maintainers
5
Weekly downloads
 
Created
Source

FileUpload

Import

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

Help users select and upload a file.

  • https://govuk-react.github.io/govuk-react/?path=/docs/file-upload
  • https://design-system.service.gov.uk/components/file-upload/

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

FAQs

Package last updated on 13 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc