Avatar cropper
- from @zriz
- by pqoqubbw <https://zriz.dev>
A profile photo control: upload, crop to a circle in a dialog, zoom, and get a round PNG file.
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 @zriz/avatar-cropperRegistry dependencies3
- button
- dialog
- cropper
