@atlaskit/avatar
Version:
An avatar is a visual representation of a user or entity.
10 lines (9 loc) • 591 B
TypeScript
/// <reference types="react" />
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
export type AvatarSizeMap = Record<SizeType, number>;
export type AppearanceType = 'circle' | 'square';
export type SizeType = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
export type IndicatorSizeType = 'small' | 'medium' | 'large' | 'xlarge';
export type AvatarClickEventHandler = (event: React.MouseEvent, analyticsEvent?: UIAnalyticsEvent) => void;
export type Status = 'approved' | 'declined' | 'locked';
export type Presence = 'online' | 'busy' | 'focus' | 'offline';