PhotoCropper

Image cropping utility component using Cropper.js.

Usage

<PhotoCropper
image={imageUrl}
aspectRatio={1}
onCrop={handleCrop}
/>

Props

PropTypeDescription
imagestringImage URL to crop
aspectRationumberCrop aspect ratio (1 = square)
onCropfunctionCallback with cropped image data