UNPKG

866 BTypeScriptView Raw
1import React, { CSSProperties, MouseEventHandler } from 'react';
2import { AvatarPropsTypes } from './PropsType';
3export interface AvatarProps extends AvatarPropsTypes {
4 prefixCls?: string;
5 className?: string;
6 style?: CSSProperties;
7 children?: string | any;
8 src?: string;
9 size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
10 onClick?: MouseEventHandler<HTMLElement>;
11 text?: string;
12 useRule?: boolean;
13 onLoadError?: any;
14 hangingurl?: string;
15 ishanging?: Boolean;
16 hangingpos?: string;
17}
18export default class Avatar extends React.Component<AvatarProps, any> {
19 static defaultProps: {
20 prefixCls: string;
21 size: string;
22 shape: string;
23 children: string;
24 useRule: boolean;
25 bgColor: string;
26 };
27 constructor(props: any);
28 onLoadError: () => any;
29 render(): JSX.Element;
30}