https://github.com/meowtec/recrop
cropping & rectangle selection component for React
https://github.com/meowtec/recrop
cropper react react-component
Last synced: about 2 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 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T07:15:29.000Z (almost 7 years ago)
- Last Synced: 2025-05-17T22:35:48.305Z (about 1 year 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 TypeScript
For more usages see [demo](https://meowtec.github.io/recrop/)