This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@aiwizo/react-file-dropzone

0.0.13 • Public • Published

@aiwizo/react-file-dropzone

NOTE! v0.0.x - alpha. Not production ready. Still needs testing and improvements.

File dropzone component for React.

Installation

npm install @aiwizo/react-file-dropzone @aiwizo/application-styles styled-components

Basic Usage

// Importing
import "@aiwizo/application-styles";
import { FileDropzone } from "@aiwizo/react-file-dropzone";

<FileUpload
  onChange={({ event, files }) => {
    /* Do something */
  }}
/>;

Custom styling

Its possible to override the following default styles

<FileUpload
  styles={
    backgroundColorDragging,
    backgroundColor,
    border,
    borderTopLeftRadius,
    borderTopRightRadius,
    borderBottomRightRadius,
    borderBottomLeftRadius,
    color,
    colorDragging,
    fontFamily,
    fontSize,
    fontWeight,
    padding,
  }
/>;

Make sure that the peer dependencies in package.json are installed in your application.

Contribution

Please let us know if you have any issues. Put an issue here on github and we'll do our best to solve it.

/@aiwizo/react-file-dropzone/

    Package Sidebar

    Install

    npm i @aiwizo/react-file-dropzone

    Weekly Downloads

    3

    Version

    0.0.13

    License

    Apache-2.0

    Unpacked Size

    25.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • oscarleo
    • jacob-aiwizo
    • fippli