Import
Usage
With arrow
Positioning
Multiple tooltips with provider
Custom delay
Controlled tooltip
API reference
Tooltip
The root component that manages tooltip state.boolean
Controls the open state of the tooltip.
boolean
The initial open state in uncontrolled mode.
(open: boolean) => void
Callback fired when the open state changes.
number
default:"200"
The delay in milliseconds before the tooltip appears.
Tooltip.Trigger
The trigger element that activates the tooltip on hover or focus.React.ReactElement
required
The element that triggers the tooltip. Must be a renderable element.
number
default:"200"
Override the delay for this specific trigger.
Tooltip.Content
The content displayed inside the tooltip popup.boolean
default:"false"
Controls whether to show the arrow pointing to the trigger.
'top' | 'right' | 'bottom' | 'left'
default:"'top'"
The preferred side of the trigger to render against.
'start' | 'center' | 'end'
default:"'center'"
The alignment of the tooltip relative to the trigger.
number
The distance in pixels from the trigger. Defaults to 4 when showArrow is false, or 10 when showArrow is true.
string
Additional CSS class names to apply to the tooltip content.
CSSProperties
Inline styles to apply to the tooltip content.
Tooltip.Provider
Provides shared configuration for multiple tooltips.number
default:"200"
The delay in milliseconds before tooltips appear for all tooltips within the provider.
React.ReactNode
required
The tooltip components to be wrapped by the provider.