stream-chat-react
Version:
React components to create chat conversations or livestream style chat
15 lines • 707 B
TypeScript
import { type ComponentPropsWithoutRef } from 'react';
export type AvatarProps = {
/** URL of the avatar image */
imageUrl?: string;
/** Name of the user, used for avatar image alt text and title fallback */
userName?: string;
/** Online status indicator, not rendered if not of type boolean */
isOnline?: boolean;
size: '2xl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs' | (string & {}) | null;
} & ComponentPropsWithoutRef<'div'>;
/**
* A round avatar image with fallback to username's first letter
*/
export declare const Avatar: ({ className, imageUrl, isOnline, size, userName, ...rest }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Avatar.d.ts.map