Socket
Book a DemoInstallSign in
Socket

focus-file

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-file

Focus file add on.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
46
-8%
Maintainers
7
Weekly downloads
 
Created
Source

Focus file

master develop

Dependencies Status Dev Dependencies Status Peer Dependencies Status

Focus file addon. Uses DropzoneJS.

Usage

In your project, do the following :

npm i -D focus-file@latest

If your running on brunchJs, don't forget to copy the downloaded script to your vendor folder.

Once correctly added, the component will be available on the window as FocusFile.

Example

<FocusFile url='your/url'/>

Advanced usage

The component uses internally a store, fed with all the files dropped in the file upload, whatever the upload status was.

You can access this store with refToYourFocusFileComponent.props.store.

Adding DropzoneJS events

If you want to catch DropzoneJS events, you can access the Dropzone object through refToYourFocusFileComponent.dropzone.

Dependencies

Keywords

react

FAQs

Package last updated on 14 Mar 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.