Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsMedia

Image Cropper

Crop a drawn image or an uploaded file with a draggable, resizable box, aspect presets, zoom, quarter-turn rotation, thirds grid, keyboard nudging, live preview and canvas export.

Preview

1.0×

Preview

Ines Varga

Avatar preview

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
srcstring—Image URL (an object URL from a file works); or pass children.
childrenReactNode—A drawn image (e.g. an SVG) that fills its box.
imageWidth / imageHeightnumber1200 / 800Natural size in pixels; read from src when it loads.
altstring"Image to crop"Text alternative for the image.
aspects / defaultAspect{ label, value }[] / number | nullFree, 1:1, 4:5, 16:9 / nullAspect presets and the starting one (width / height, null for free).
shape"rect" | "circle""rect"circle gives a round 1:1 box for avatars.
maxZoomnumber3Highest zoom for the slider and wheel.
onCropChange(result: { crop, rotation, zoom }) => void—crop is { x, y, width, height } in pixels of the image after rotation.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗