@atlaskit/avatar
Version:
An avatar is a visual representation of a user or entity.
20 lines (19 loc) • 518 B
TypeScript
import { type SizeType } from './types';
export type AvatarContextProps = {
size: SizeType;
};
/**
* __Avatar context__
*
* This allows setting the size of all avatars under a context provider.
*
* ```tsx
* <AvatarContext.Provider value={{ size: 'small' }}>
* <Avatar
* // ...props
* />
* </AvatarContext.Provider>
* ```
*/
export declare const AvatarContext: import('react').Context<AvatarContextProps | undefined>;
export declare const useAvatarContext: () => AvatarContextProps | undefined;