UNPKG

@vela-ui/react

Version:

Vela UI React components

39 lines (36 loc) 1.36 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as tailwind_variants from 'tailwind-variants'; import { VariantProps } from 'tailwind-variants'; import { Tooltip as Tooltip$1, TooltipTrigger as TooltipTrigger$1 } from 'react-aria-components'; declare const tooltipVariants: tailwind_variants.TVReturnType<{ isEntering: { true: string[]; }; isExiting: { true: string; }; }, undefined, "bg-primary text-primary-foreground z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance", { isEntering: { true: string[]; }; isExiting: { true: string; }; }, undefined, tailwind_variants.TVReturnType<{ isEntering: { true: string[]; }; isExiting: { true: string; }; }, undefined, "bg-primary text-primary-foreground z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance", unknown, unknown, undefined>>; interface TooltipProps extends React.ComponentProps<typeof Tooltip$1>, VariantProps<typeof tooltipVariants> { /** * Whether the element should render an arrow. * @default false */ showArrow?: boolean; } declare const TooltipTrigger: typeof TooltipTrigger$1; declare function Tooltip({ className, showArrow, offset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element; export { Tooltip, type TooltipProps, TooltipTrigger };