react-multi-crop-tool

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i react-multi-crop-tool

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

67.7 kB

Total Files

7

Last publish

Collaborators

  • idarshan18