mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
react-avatar-editor: add optional className field
This commit is contained in:
2
types/react-avatar-editor/index.d.ts
vendored
2
types/react-avatar-editor/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user