Deprecated
Move here
ReactMultiCrop Used Fabric.js and Integrated with react-admin. Designed for react-admin component.
Codacy | Travis | Github Action |
---|---|---|
- Please read how to install fabric.js:
https://www.npmjs.com/package/fabric
- Dependencies:
- Material UI
- fabric.js
yarn add react-multi-crop
You can use redux-form to embed this component for field input.
import ReactMultiCrop from 'react-multi-crop';
import { Field } from 'redux-form';
...
<Field name="my_field" component={ReactMultiCrop} />
...
import ReactMultiCrop from 'react-multi-crop';
import { Field, formValues } from 'redux-form';
...
<Field name="image" component={ImageField} />
<Field name="my_field" component={formValues('image')(ReactMultiCrop)} />
...