react-image-crop-tool

1.1.4 • Public • Published

react-image-select-tool

A react component for cropping images.

Deps

Usage


import CropPanel from "react-image-crop-tool";

<CropPanel
  originalSrc={this.state.original || this.props.original}
  onSelectRegion={this.cropRegion} //required
  cancelCrop={this.endCrop} //required
  aspectRatio={this.props.aspectRatio}
  size={this.props.size} //required
  onDeleteImage={this.onCancelCropImage || false}
  labels={this.labels}
  buttons={this.props.cropPanelButtons || this.props.buttons}/>)

Package Sidebar

Install

npm i react-image-crop-tool

Weekly Downloads

8

Version

1.1.4

License

ISC

Last publish

Collaborators

  • jihdeh