@nodeject/ui-components
Version:
UI library for non-trivial components
16 lines (15 loc) • 468 B
TypeScript
/// <reference types="react" />
export declare type AvatarSize = 'large' | 'small' | 'default' | number | undefined;
export interface AvatarProps {
id: string;
className?: string;
generateBackgroundColorField?: string;
display: string;
picture: string;
tooltip?: boolean;
size?: AvatarSize;
style?: React.CSSProperties;
}
export interface AvatarBtnProps extends AvatarProps {
onAvatarClick?: (id?: string) => void;
}