| 1 |
/// <reference types="react" /> |
| 2 |
export interface AvatarProps extends React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> { |
| 3 |
/** Content rendered inside the avatar, such as custom svgs or icons. */ |
| 4 |
children?: React.ReactNode; |
| 5 |
/** Additional classes added to the avatar. */ |
| 6 |
className?: string; |
| 7 |
/** Specifies the URL of the image for the avatar. */ |
| 8 |
src?: string; |
| 9 |
/** Specifies the alternate text of the image for the avatar. Will instead set the aria-label when using children or initials; to hide the avatar |
| 10 |
* from assistive technologies when passing children or initials, pass an empty string to the alt prop. |
| 11 |
*/ |
| 12 |
alt: string; |
| 13 |
/** Flag to indicate the avatar should have a border. */ |
| 14 |
isBordered?: boolean; |
| 15 |
/** Size variant of avatar. */ |
| 16 |
size?: 'sm' | 'md' | 'lg' | 'xl'; |
| 17 |
/** Color of the avatar. */ |
| 18 |
color?: 'red' | 'orangered' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'gray'; |
| 19 |
/** Initials of the avatar. */ |
| 20 |
initials?: string; |
| 21 |
} |
| 22 |
export declare const Avatar: React.FunctionComponent<AvatarProps>; |
| 23 |
//# sourceMappingURL=Avatar.d.ts.map |