samagra-chatui
Version:
The React library for Chatbot UI
15 lines (14 loc) • 418 B
TypeScript
import React from 'react';
export type AvatarSize = 'sm' | 'md' | 'lg';
export type AvatarShape = 'circle' | 'square';
export interface AvatarProps {
className?: string;
src?: string;
alt?: string;
url?: string;
size?: AvatarSize;
shape?: AvatarShape;
children?: React.ReactNode;
style?: Record<string, string>;
}
export declare const Avatar: (props: AvatarProps) => React.JSX.Element;