@gurmiguel/react-image-cut
v1.0.1
Published
Manipulate an image with an intuitive Graphical Interface
Downloads
3
Readme
react-image-cut
Manipulate an image with an intuitive Graphical Interface
Install
npm install --save @gurmiguel/react-image-cut
or with yarn
yarn add @gurmiguel/react-image-cut
Usage
import React, { Component } from 'react'
import { ImageCut } from 'react-image-cut'
const Example = ({ file }) => {
return <ImageCut
file={file}
initialWidth={150}
initialHeight={150}
onEditComplete={(fileResult) => {
// ...handle file result here
}}
/>
}
License
MIT © gurmiguel