Properties
| Property | Type | Description |
|---|---|---|
image | stringFile | The image file to crop. |
width | Width<string | number>Default: 300 | The width of the component. |
height | Height<string | number>Default: 300 | The height of the component. |
aspectRatio | number | The aspect ratio of the crop shape. |
className | string | The elements class name. |
cropShape | rectround |
Events
| Property | Type | Description |
|---|---|---|
onCropComplete | ((croppedImage: File) => void) | Callback on crop complete. |