1.11.0 • Published 2 years ago

@s-ui/react-molecule-image-editor v1.11.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

MoleculeImageEditor

Component to crop and rotate an image.

Installation

$ npm install @s-ui/react-molecule-image-editor

Usage

Basic usage

Import package and use the component

import MoleculeImageEditor from '@s-ui/react-molecule-image-editor'

return (
  <MoleculeImageEditor 
    cropLabelIcon={<CropIcon>}
    cropLabelText="Crop"
    image={image}
    onChange={handleChange}
    rotateLabelIcon={<RotateIcon>}
    rotateLabelText="Rotate"
  />
)

Import the styles (Sass)

@import '~@s-ui/theme/lib/index';
/* @import 'your theme'; */
@import '~@s-ui/react-molecule-image-editor/lib/index';
1.11.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.10.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago