import { forwardRef } from 'react' interface TooltipProps extends React.ComponentPropsWithRef<'div'> { content: string direction?: 'top' | 'bottom' | 'right' | 'left' } export const Tooltip = forwardRef( (props, ref) => { const { direction = 'bottom', children, content, ...rest } = props return ( <>
{children}
{content}
) } )