UNPKG

@atlaskit/avatar

Version:

An avatar is a visual representation of a user or entity.

30 lines (29 loc) 976 B
import { type ForwardedRef, type MouseEventHandler, type ReactNode } from 'react'; import { type AppearanceType, type SizeType } from '../types'; type AvatarContentContextProps = { as: 'a' | 'button' | 'span'; appearance: AppearanceType; avatarImage: ReactNode; borderColor?: string; href?: string; isDisabled?: boolean; label?: string; onClick?: MouseEventHandler; ref: ForwardedRef<HTMLElement>; tabIndex?: number; target?: '_blank' | '_self' | '_top' | '_parent'; testId?: string; size: SizeType; stackIndex?: number; 'aria-controls'?: string; 'aria-expanded'?: boolean; 'aria-haspopup'?: boolean | 'dialog'; }; /** * __Avatar content context__ * * This context provides the props for the AvatarContent component, enabling * consumers to compose the AvatarContent with the Avatar component. */ export declare const AvatarContentContext: import('react').Context<AvatarContentContextProps>; export {};