Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cijiugechu/recrop-element

React bindings for image-crop-element
https://github.com/cijiugechu/recrop-element

bindings image-crop image-crop-element react

Last synced: 8 days ago
JSON representation

React bindings for image-crop-element

Awesome Lists containing this project

README

        

# recrop-element
React bindings for [image-crop-element](https://github.com/github/image-crop-element).

## Installation
```shell
npm install recrop-element
# or yarn
yarn add recrop-element
# or pnpm
pnpm add recrop-element
```

## Usage

#### Plain
```js
import ReImageCrop from 'recrop-element'

```

#### Rounded crop area
```js
import ReImageCrop from 'recrop-element'

```

#### With loading state
```js
import ReImageCrop from 'recrop-element'

```

#### With autoupdate inputs
```js
import ReImageCrop from 'recrop-element'

```

#### Listen to the change event
```js
import ReImageCrop from 'recrop-element'

{
console.log(
'Crop area changed.',
event.detail.x,
event.detail.y,
event.detail.width,
event.detail.height
)
}}
/>