You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
780 B
25 lines
780 B
import * as React from 'react';
|
|
import { AvatarSize } from './SizeContext';
|
|
export interface AvatarProps {
|
|
/** Shape of avatar, options: `circle`, `square` */
|
|
shape?: 'circle' | 'square';
|
|
size?: AvatarSize;
|
|
gap?: number;
|
|
/** Src of image avatar */
|
|
src?: React.ReactNode;
|
|
/** Srcset of image avatar */
|
|
srcSet?: string;
|
|
draggable?: boolean;
|
|
/** Icon to be used in avatar */
|
|
icon?: React.ReactNode;
|
|
style?: React.CSSProperties;
|
|
prefixCls?: string;
|
|
className?: string;
|
|
children?: React.ReactNode;
|
|
alt?: string;
|
|
crossOrigin?: '' | 'anonymous' | 'use-credentials';
|
|
onError?: () => boolean;
|
|
}
|
|
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<unknown>>;
|
|
export default Avatar;
|