react-avatar-editor: add optional className field

This commit is contained in:
Laurent Senta
2019-02-11 15:21:00 +01:00
parent 363cdf403a
commit ff55e4fa68
2 changed files with 3 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
// Project: https://github.com/mosch/react-avatar-editor
// Definitions by: Diogo Corrêa <https://github.com/diogocorrea>
// Gabriel Prates <https://github.com/gabsprates>
// Laurent Senta <https://github.com/lsenta>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -23,6 +24,7 @@ export interface CroppedRect {
}
export interface AvatarEditorProps {
className?: string;
image: string | File;
width?: number;
height?: number;

View File

@@ -25,6 +25,7 @@ class AvatarEditorTest extends React.Component {
<div>
<AvatarEditor image="" />
<AvatarEditor image={file} />
<AvatarEditor image="" className="helloworld" />
<AvatarEditor image="" width={1} />
<AvatarEditor image="" height={1} />
<AvatarEditor image="" border={1} />