@trail-ui/react
Version:
22 lines (19 loc) • 833 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PopoverVariantProps, SlotsToClasses, PopoverSlots } from '@trail-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, TooltipProps, TooltipTrigger };