interface AvatarProps {
    alt?: string;
    children?: ReactNode;
    className?: string;
    crossOrigin?: "" | "anonymous" | "use-credentials";
    draggable?: boolean | "true" | "false";
    gap?: number;
    icon?: ReactNode;
    onClick?: ((e?) => void);
    onError?: (() => boolean);
    prefixCls?: string;
    rootClassName?: string;
    shape?: "circle" | "square";
    size?: AvatarSize;
    src?: ReactNode;
    srcSet?: string;
    style?: CSSProperties;
}

Properties

alt?: string
children?: ReactNode
className?: string
crossOrigin?: "" | "anonymous" | "use-credentials"
draggable?: boolean | "true" | "false"
gap?: number
icon?: ReactNode

Icon to be used in avatar

onClick?: ((e?) => void)

Type declaration

onError?: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

prefixCls?: string
rootClassName?: string
shape?: "circle" | "square"

Shape of avatar, options: circle, square

size?: AvatarSize
src?: ReactNode

Src of image avatar

srcSet?: string

Srcset of image avatar

style?: CSSProperties

Generated using TypeDoc