DEVELOPMENT PREVIEWIn development

tooltip API

overlays/tooltip.tsx

Tooltip

Props

PropTypeDefaultDescription
children*
React.ReactNode
content*
React.ReactNode
direction
TooltipDirection | Side | undefinedTooltipDirection.BottomPreferred side — enum or plain 'top' | 'bottom' | 'left' | 'right'.
size
TooltipSize | LegacySize | undefinedTooltipSize.Compact
delayMs
number | undefined400Hover delay before showing, in ms. Default 400.
open
boolean | undefinedControlled visibility.
contentClassName
string | undefinedExtra classes for the tooltip bubble.
widthClassName
string | undefinedWidth constraint override for the bubble (e.g. 'max-w-xs').
placement
"top" | "right" | "bottom" | "left" | undefined@deprecated Legacy alias for `direction`.
animationVariants
unknown@deprecated Animations are CSS-driven now; this prop is ignored.
Show native HTML props

Native HTML Props

PropTypeDefaultDescription
title
string | undefinedOptional bold heading above the content.
onOpenChange
((open: boolean) => void) | undefined