RE

React Image Crop

react-image-crop

A responsive image cropping tool for React

Component Libraries
react
reactjs
image
crop
react-component
react-image-crop
Component Libraries
javascript
npm
frontend
Stars
4.1k
Weekly
0
Open issues
73
Bundle
~60 kB

Installation

npm install react-image-crop

Code example

import { Button } from "react-image-crop";

export function Example() {
  return (
    <div className="flex gap-2">
      <Button>Primary</Button>
      <Button variant="outline">Secondary</Button>
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by Dominic Tobias
  • 0 weekly downloads. Battle tested
  • First-class TypeScript definitions
  • ISC licensed

Considerations

  • Adds roughly ~60 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 73 open issues on GitHub

FAQs

Alternatives & similar libraries