Skip to main content

InlineCrop

The Inline Crop component displays an overlay and interaction handlers for inline cropping of an image on a design area.

The overlay stretches to fill the dimensions of its parent element, and cropping is done via the resize handles and by dragging the image.

nametyperequiredcomment
cropCropyes

The cropping box's offset as a percent from the top, right, bottom, and left edges of the image

onMoveCrop(value: { crop: Crop }) => voidyes
onResizeCrop(value: CroppingValues) => voidyes
position{ x: number; y: number }yes

The item's position within the design area

rotationnumberyes

The item's rotation

size{ height: number; width: number }yes

The item's size

uncroppedUrlstringyes

URL pointing to the uncropped version of the image

ariaLabelstringno
classNamestringno
roleAriaRoleno
styleCSSPropertiesno
Result
Loading...
Live Editor