@image-auto-crop/react
A React wrapper for image-auto-crop.
Install
Install with the peer dependency @image-auto-crop/core
:
npm i @image-auto-crop/core @image-auto-crop/react
Usage
This package provides an ImageAutoCrop
React component which can be a drop-in replacement of a standard img
element.
Example:
import { ImageAutoCrop } from '@image-auto-crop/react';
<ImageAutoCrop src="example.png" alt="Example" />