easemob-chat-uikit
Version:
   ![GitHub last c
28 lines (27 loc) • 947 B
TypeScript
import React from 'react';
export interface AvatarProps {
size?: 'large' | 'small' | 'default' | number;
/** Whether to show red dot without number */
shape?: 'circle' | 'square' /** 形状 */;
src?: string;
icon?: React.ReactNode;
style?: React.CSSProperties;
prefixCls?: string;
className?: string;
children?: React.ReactNode;
alt?: string;
isOnline?: boolean;
draggable?: boolean;
crossOrigin?: '' | 'anonymous' | 'use-credentials';
srcSet?: string;
presence?: {
visible: boolean;
text?: string;
icon?: HTMLImageElement | string;
};
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
onError?: () => boolean;
}
export declare const InternalAvatar: (props: any, ref: any) => import("react/jsx-runtime").JSX.Element;
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
export default Avatar;