DocSpace-buildtools/web/ASC.Web.Storybook/stories/avatar-editor/README.md
2019-09-05 09:23:05 +03:00

2.1 KiB

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 -