1.0.7 • Published 4 years ago

react-ipfs-dropzone v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

React IPFS Dropzone

Cut out the middleman and upload your content straight to IPFS

Installation

With NPM

  npm install --save react-ipfs-dropzone

  Peer Dependencies

  npm install --save ipfs ipfs-http-client 

With Yarn

  yarn add react-ipfs-dropzone

  Peer Dependencies

  yarn add ipfs ipfs-http-client

Usage

import React from 'react';

import IPFSDropzone from 'react-ipfs-dropzone';

export default function DummyComponent(props){
  return (
    <IPFSDropzone 
      onLoad={(cids) => {

      }}
      loadBody={(
        <span>Drop files</span>
      )} />
  );
}

Props

onLoad

callback fired with cids of all uploaded files

loadBody

Content of the dropzone internals

Styling

react-ipfs-dropzone is the base class name for styling

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago