UNPKG

easemob-chat-uikit

Version:

![Static Badge](https://img.shields.io/badge/platform-React-green) ![Static Badge](https://img.shields.io/badge/language-typescript-green) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/easemob/Easemob-UIKit-web) ![GitHub last c

28 lines (27 loc) 947 B
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;