@atlaskit/avatar
Version:
An avatar is a visual representation of a user or entity.
29 lines (28 loc) • 1 kB
TypeScript
import { type ForwardedRef, type MouseEventHandler, type ReactNode } from 'react';
import type { TriggerAriaProps } from '@atlaskit/popup/types';
import { type AppearanceType, type SizeType } from '../types';
type AvatarContentContextProps = Partial<TriggerAriaProps> & {
as: 'a' | 'button' | 'span';
appearance: AppearanceType;
UNSAFE_isUpdatedGeometry?: boolean;
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;
};
/**
* __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 {};