ImageCropper

Media

Interactive image cropping tool with aspect ratio locking, zoom controls, rotation, and crop preview for profile or media uploads

ImageCropper Component

Interactive image cropping for avatars, banners, and media management.

Basic Usage

Crop with default rectangular selection.

Crop content
Zoom
Crop content
Zoom

Implementation Notes

Keep setup minimal so teams can adopt the component quickly.

  • • Start with one default crop path and clear CTA labels.
  • • Offer common aspect ratios early in user workflows.
  • • Store previews in state so users can verify output immediately.

Normal Usage

Round crop for profile or team avatar flows.

Crop content
Zoom
Crop content
Zoom

Implementation Notes

This pattern maps to everyday product screens and forms.

  • • Round crops are ideal for profile and member cards.
  • • Disabled states help in approval-only screens.
  • • Pair crop actions with immediate visual confirmation.

Advanced Usage

Use wide aspect ratios for cover images.

Crop content
Zoom
Crop content
Zoom

Implementation Notes

Advanced mode should compose cleanly with app state and callbacks.

  • • Keep callback handlers lightweight and deterministic.
  • • Support both landscape and portrait marketing assets.
  • • Track cancel actions to improve editing UX analytics.

Real-Life Use Cases

Production usage in onboarding profile setup and media editing pipelines.

Crop content
Zoom

Avatar Preview

No avatar crop yet.

Banner Preview

No banner crop yet.

Product Preview

No product crop yet.

Last action: No crop actions yet.

Implementation Notes

Show how the component fits real workflows, not isolated UI demos.

  • • Preserve crop previews so users can compare outputs.
  • • Include cancel paths for multi-step onboarding flows.
  • • Persist final crops to profile or media services.

View on GitHub

See the full source code on GitHub