@engie-group/fluid-design-system-react
Version:
Fluid Design System React
26 lines (25 loc) • 1.2 kB
TypeScript
import { AvatarProperties } from '@engie-group/fluid-types';
import React from 'react';
import { AsChild, WithHTMLAttributes } from '../../../utils/typeHelpers';
import { NJTooltipProps } from '../../tooltip/NJTooltip';
export declare const NJAvatarRoot: React.ForwardRefExoticComponent<NJAvatarRootProps & React.RefAttributes<HTMLAnchorElement & HTMLDivElement & HTMLButtonElement>>;
type NJAvatarOwnProps = AvatarProperties & React.PropsWithChildren & {
/**
* Avatar's tooltip text
*/
tooltipText?: NJTooltipProps['text'];
/**
* Tooltip's position
*/
tooltipPosition?: NJTooltipProps['placement'];
/**
* Whether avatar is clickable or not, will make
**/
isClickable?: boolean;
/**
* Used for NJAvatarGroup as the last tile of the group
**/
isRemainingCount?: boolean;
};
export type NJAvatarRootProps = WithHTMLAttributes<NJAvatarOwnProps, 'a'> & WithHTMLAttributes<NJAvatarOwnProps, 'button'> & WithHTMLAttributes<NJAvatarOwnProps, 'div'> & AsChild<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement> | React.ButtonHTMLAttributes<HTMLButtonElement> | React.HTMLAttributes<HTMLDivElement>, keyof NJAvatarOwnProps>>;
export {};