@hhgtech/hhg-components
Version:
Hello Health Group common components
22 lines (21 loc) • 742 B
TypeScript
import React, { CSSProperties } from 'react';
export type AvatarSize = 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl';
export type Props = {
size?: AvatarSize;
avatarImg?: JSX.Element;
avatarUrl?: string;
firstLetter?: string;
backgroundColor?: string;
onClick?: () => void;
className?: string;
type?: 'rounded' | 'square';
style?: CSSProperties;
width?: number;
height?: number;
alt?: string;
};
/**
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
*/
declare const Avatar: ({ type, size, avatarImg, avatarUrl, firstLetter, backgroundColor, onClick, style, className, width, height, alt, }: Props) => React.JSX.Element;
export { Avatar };