Components
Tooltip
Contextual information that appears on hover or focus
Preview
Installation
Usage
Examples
With Button
Add tooltips to button elements.
Positions
Control tooltip placement around the trigger.
With Delay
Add custom delay before tooltip appears.
Icon Toolbar
Use tooltips in icon-only toolbars.
API Reference
The Tooltip component is built on top of Base UI's Tooltip. All Base UI props are supported. The documentation below only covers custom props and modified defaults specific to our implementation.
For the complete Base UI API, see the Base UI Tooltip documentation.
Custom Props
TooltipContent
Prop
Type
Default
Modified Defaults
Our implementation changes the following Base UI prop defaults:
- TooltipTrigger:
delaydefaults to0(Base UI defaults to600) - TooltipTrigger:
closeDelaydefaults to0(Base UI defaults to0but we make it explicit) - TooltipContent:
sidedefaults to'top'(Base UI defaults to'top'but we make it explicit) - TooltipContent:
aligndefaults to'center' - TooltipContent:
sideOffsetdefaults to8(Base UI defaults to0)