1 | import * as React from 'react';
|
2 | import type { AvatarSize } from './AvatarContext';
|
3 | export interface AvatarProps {
|
4 |
|
5 | shape?: 'circle' | 'square';
|
6 | size?: AvatarSize;
|
7 | gap?: number;
|
8 |
|
9 | src?: React.ReactNode;
|
10 |
|
11 | srcSet?: string;
|
12 | draggable?: boolean | 'true' | 'false';
|
13 |
|
14 | icon?: React.ReactNode;
|
15 | style?: React.CSSProperties;
|
16 | prefixCls?: string;
|
17 | className?: string;
|
18 | rootClassName?: string;
|
19 | children?: React.ReactNode;
|
20 | alt?: string;
|
21 | crossOrigin?: '' | 'anonymous' | 'use-credentials';
|
22 | onClick?: (e?: React.MouseEvent<HTMLElement>) => void;
|
23 | onError?: () => boolean;
|
24 | }
|
25 | declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
26 | export default Avatar;
|