1.0.4 • Published 5 years ago

react-simple-image-editor v1.0.4

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

react-simple-image-editor

sample1

react-simple-image-editor is a simple image editor component for React.

Installation

Use the package manager npm to install react-simple-image-editor.

npm install react-simple-image-editor

Usage

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:

import SimpleEditor from 'react-simple-image-editor';
import testImage from './relative/path/test-image.jpg/';

const MyLegendaryComponent = () => (
  <SimpleEditor
    editorUI={{
      theme: 'blue',
      image: testImage,
    }}
  />
);

sample2

Themes

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

sample3

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago