React-multi-crop-tool
Made with create-react-library
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