DocSpace-buildtools/web/ASC.Web.Storybook/stories/avatar-editor
2019-09-05 09:23:05 +03:00
..
index.stories.js web: components: first version of the avatar editor 2019-09-05 09:23:05 +03:00
README.md web: components: first version of the avatar editor 2019-09-05 09:23:05 +03:00

Avatar Editor

Usage

import { AvatarEditor } from 'asc-web-components';

Description

Required to display user avatar editor on page.

Usage

<AvatarEditor
  visible={true}
  onSave={(data) =>{console.log(data.croppedImage, data.defaultImage)}}
/>

Properties

Props Type Required Values Default Description
visible bool - false Display avatar editor or not
chooseFileLabel string - Choose a file
headerLabel string - Edit Photo
saveButtonLabel string - Save
cancelButtonLabel string - Cancel
maxSizeErrorLabel string - File is too big
maxSize number - 1 Max size of image
onSave function -
onClose function -