react-simple-image-editor
Version:
A simple image editor for react
55 lines (38 loc) • 1.17 kB
Markdown

react-simple-image-editor is a simple image editor component for React.
Use the package manager [npm](https://www.npmjs.com/) to install react-simple-image-editor.
```bash
npm install react-simple-image-editor
```
```javascript
import SimpleEditor from 'react-simple-image-editor';
const MyLegendaryComponent = () => (
<SimpleEditor
editorUI={{
theme: 'blue',
image: 'your image path',
}}
/>
);
```
Image path can be an image URL or an imported image file.
`Example using an imported image file:`
```javascript
import SimpleEditor from 'react-simple-image-editor';
import testImage from './relative/path/test-image.jpg/';
const MyLegendaryComponent = () => (
<SimpleEditor
editorUI={{
theme: 'blue',
image: testImage,
}}
/>
);
```

Currently available themes: 'default' 'red' 'green' 'blue' 'yellow'
