ImageCropper
- from @ouro
A dialog for cropping a photo to a shape before it is used: drag the photo (or move it the way the arrow keys point) to choose what shows in the frame, zoom with the slider (or Plus and Minus), and Save hands the cropped image to `onCrop` as a `File`, ready for a form or an upload.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @ouro/image-cropperComponent source
No live preview has been built for this component yet.
Registry dependencies6
- @ouro/button
- @ouro/dialog
- @ouro/lib-cn
- @ouro/lib-env
- @ouro/lib-use-dev-messages
- @ouro/slider
Packages0
No npm packages are installed with it.