1.0.0 • Published 9 years ago

react-croppie v1.0.0

Weekly downloads
77
License
ISC
Repository
-
Last release
9 years ago

react-coppie

an image cropping plugin based on Croppie keep in mind this is a work in progress and not all the features of croppie are yet available ##install

Npm:npm install react-croppie

##using react-croppie

###in your react component:

  var Croppie = require("react-croppie");
  ...
  render(){
    return <Croppie url="path/to/image"/>
  }

###in your html file :

<link rel="stylesheet" href="node_modules/react-croppie/cropper.css">

##documentation

you can pass props to react-croppie component based on croppie docs

###the result currently we only support canvas type from croppie docs

var Croppie = require("react-croppie");
...
render(){
 return <Croppie url="path/to/image" ref="reactCroppie"/>
},
...
getResult(options){
  this.refs.reactCroppie.result(options).then( res =>{
    //do whatever you like with the result
  });
}
1.0.0

9 years ago

1.0.0-0

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago