Tooltip
Features
ActionTooltip
,ActionHelpTooltip
andHelpTooltip
, built on top of the generic Tooltip component.- Interactive tooltip. If a link or button is rendered in a tooltip. It will remain open when hovered. (spec)
- Tooltip positioning based on mouse position, not trigger. (spec)
Remaining
- 🚧 Auto hide if the cursor stays on trigger long enough. (spec)
Live example
Result
Loading...
Live Editor
PositionedTooltipTrigger
By default tooltip is positioned based on cursor position. PositionedTooltipTrigger
can be used to position tooltip
relative to the trigger element. It also offers more options, which are not available in the default TooltipTrigger
.
Controlled open state
Use isOpen
and onOpenChange
to control open state. Use defaultOpen
to have the tooltip open initially, without
controlling the isOpen state.
Positioning options
Use placement
, offset
, crossOffset
, and shouldFlip
to control how the tooltip should be positioned relative to
the trigger.
showOnFocus
Following the reference implementation, by default tooltip is opened only on hover. Use showOnFocus
to have it shown
when the trigger gets focused, for better accessiblity.
Result
Loading...
Live Editor