UNPKG

@aveonline/ui-react

Version:

Home base for Aveonline design system - ecosystem react

28 lines (27 loc) 869 B
import { ReactNode } from 'react'; import type { Placement } from '@floating-ui/react'; import { IChildren } from '../../../types'; import { useTooltip } from './useTooltip'; export declare type TooltipState = ReturnType<typeof useTooltip>; export declare type ITooltipProps = { placement?: Placement; title?: string; description?: string; initialOpen?: boolean; fullWidthContainer?: boolean; classNameContainer?: string; className?: string; isCustomWidthTooltip?: boolean; /** * Content children portal custom */ content?: ReactNode; withClick?: boolean; /** * 'asChild' allows the user to pass any element as the anchor = default false and elemente is button */ asChild?: boolean; onOpenChange?: (open: boolean) => void; _t?: (text: string) => string; useT?: boolean; } & IChildren;