Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-multi-crop-tool

idarshan1818MIT1.0.1

Made with create-react-library

React, Multi Crop Tool, React multi cropper, React Cropper

readme

React-multi-crop-tool

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save react-multi-crop-tool

Usage

import React, { Component } from 'react'

import MyComponent from 'react-multi-crop-tool'
import 'react-multi-crop-tool/dist/index.css'

class Example extends Component {
  render() {
    return <MultiCrops
          src={img}
          width={1000}
          coordinates={this.state.coordinates}
          onDrag={this.changeCoordinate}
          onResize={this.changeCoordinate}
          onDraw={this.changeCoordinate}
          onChange={this.changeCoordinate}
          onDelete={this.deleteCoordinate}
        />
  }
}

License

MIT © idarshan181