import * as React from 'react'; import { Content } from '@radix-ui/react-tooltip'; import { cn } from '#utils'; export type TooltipContentProps = { /** The preferred alignment against the trigger, which may change when collisions occur. */ align?: 'center' | 'end' | 'start'; /** The content to display when the user hovers over the tooltip trigger */ children: React.ReactNode; /** Additional CSS classes to add to the component, potentially overriding default styling */ className?: string; /** The distance in pixels from the viewport edges where collision detection should occur */ collisionPadding?: number; /** The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled. */ side?: 'bottom' | 'left' | 'right' | 'top'; /** The distance in pixels from the trigger */ sideOffset?: number; }; export const TooltipContent = React.forwardRef, TooltipContentProps>( function TooltipContent({ className, collisionPadding = 0, sideOffset = 4, ...props }, ref) { return ( ); } );