import * as RadixTooltip from "@radix-ui/react-tooltip"; import { type FC } from "react"; import { type LegacyTextProps } from "../Text/Text"; import { Box } from "../Box/Box"; type StaticComponents = { Trigger: typeof RadixTooltip.Trigger; Root: typeof RadixTooltip.Root; Content: FC; Text: typeof TooltipText; }; type ContentProps = { /** * An optional element to which to render the tooltip in through a portal. * * When omitted the Tooltip will be rendered into the document.body. */ container?: RadixTooltip.TooltipPortalProps["container"]; backgroundColor?: React.ComponentProps["backgroundColor"] | "transparent"; } & RadixTooltip.TooltipContentProps; declare const TooltipText: FC>; /** * A collection of components to construct a tooltip. * * @example * * ```tsx * * * * Hover me * * * * * Tooltip text * * * * ``` */ export declare const Tooltip: StaticComponents; export {};