https://github.com/meowtec/recrop
cropping & rectangle selection component for React
https://github.com/meowtec/recrop
cropper react react-component
Last synced: 8 months ago
JSON representation
cropping & rectangle selection component for React
- Host: GitHub
- URL: https://github.com/meowtec/recrop
- Owner: meowtec
- Created: 2019-03-05T05:06:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T07:15:29.000Z (over 6 years ago)
- Last Synced: 2024-12-27T13:46:22.889Z (9 months ago)
- Topics: cropper, react, react-component
- Language: TypeScript
- Homepage: https://meowtec.github.io/recrop/
- Size: 2.36 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# recrop
a customizable image-crop / region-selection component for React.## Demo
https://meowtec.github.io/recrop/## Usage
```sh
npm i recrop --save
``````javascript
import { ImageCrop } from 'recrop'class ImageCropApp extends PureComponent {
state = {
crop: null,
}handleCropChange = (crop) => {
this.setState({ crop })
}render() {
return (
)
}
}
```## Feature
- Customizable
- Write in TypeScriptFor more usages see [demo](https://meowtec.github.io/recrop/)