@payfit/unity-components
Version:
13 lines (12 loc) • 600 B
TypeScript
type AvatarContextValue = {
variant: 'circle' | 'square';
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
hasPair: boolean;
color?: 'teal' | 'plum' | 'purple' | 'orange' | 'neutral' | 'warning' | 'success' | 'info' | 'danger' | 'promo' | 'primary';
};
export declare const AvatarContext: import('react').Context<AvatarContextValue>;
export declare function AvatarProvider({ variant, size, hasPair, color, children, }: AvatarContextValue & {
children: React.ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export declare function useAvatarContext(): AvatarContextValue;
export {};