UNPKG

@alice-ui/react

Version:
22 lines (19 loc) 838 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PopoverVariantProps, SlotsToClasses, PopoverSlots } from '@alice-ui/theme'; import { ReactNode } from 'react'; import { TooltipProps as TooltipProps$1, TooltipTriggerComponentProps } from 'react-aria-components'; interface TooltipProps extends Omit<TooltipProps$1, 'children'>, PopoverVariantProps { children?: ReactNode; /** * Whether the element should render an arrow. * @default false */ showArrow?: boolean; /** * The tooltips classNames. */ classNames?: SlotsToClasses<PopoverSlots>; } declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element; declare function TooltipTrigger(props: TooltipTriggerComponentProps): react_jsx_runtime.JSX.Element; export { Tooltip, type TooltipProps, TooltipTrigger };