@image-auto-crop/react
v0.0.1-alpha.4
Published
![npm](https://img.shields.io/npm/v/%40image-auto-crop%2Freact)
Downloads
3
Readme
@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" />