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