What does it do?
Developers import components from @zriz/react/cropper and arrange Image, Mask, and Area inside Viewport. They can pass props, className, and ref to each element and position dials, zoom controls, and buttons to suit the interface. Users adjust images with touch gestures, pinch zoom, and a leveling dial. When an adjustment is complete, onValueCommit provides the crop result. The example interface includes handles, a grid, rotation, flipping, and reset controls.
Key features
- Arrange image, mask, and crop area as components.
- Adjust images with pinch zoom and touch gestures.
- Provide a leveling dial and rotation, flipping, and reset controls.
- Deliver the crop result through onValueCommit when changes are complete.