vamsiy78

Image Cropper

Component

About

A fixed-frame image cropper where the picture moves under a still frame via drag, wheel/pinch/slider zoom, quarter-turn rotation and a straighten slider, exporting the crop to a canvas file — for profile pictures, avatars and any fixed-aspect upload.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Image Cropper to your project and fits it to your theme.

Code

How Image Cropper is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ImageCropper } from "@/components/ui/image-cropper";

/** With no picture yet, the cropper holds its place and says it is loading. */
export default function ImageCropperLoading() {
  return <ImageCropper src="" height={260} className="w-full max-w-md" />;
}

Dependencies

More by vamsiy78

View all
  • Segmented Control

    Segmented Control

    8
  • Animated Beam

    Animated Beam

    7
  • Agent Roster

    Agent Roster

    5
  • Table Of Contents

    Table Of Contents

    1
  • API Key Field

    API Key Field

    1
  • Toast Stack

    Toast Stack

  • Team Portrait Grid

    Team Portrait Grid

  • Search Field

    Search Field