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
  • Animated Beam

    Animated Beam

    24
  • Segmented Control

    Segmented Control

    9
  • Glow Border

    Glow Border

    8
  • Agent Roster

    Agent Roster

    8
  • FAQ Accordion Section

    FAQ Accordion Section

    3
  • Table Of Contents

    Table Of Contents

    1
  • API Key Field

    API Key Field

    1
  • Feel Script

    Feel Script