1.0.1 • Published 3 years ago

react-multi-crop-tool v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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