Tooltip
A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
Component Features
- 📐 12 Positions: Supports
top,bottom,left,rightand their combinations. - ⏱️ Manual Control: Supports manual show/hide control with customizable delay.
- 🎨 Rich Content: Supports manual control, customizable delay, and rich text content.
- 🌗 Dark Theme: Based on
BrPopoverfor automatic dark mode adaptation. - 🎨 Theme Customization: Via
BrConfigProviderfor global theming or TailwindCSS for local overrides.
Basic Usage
Positions
Tooltip supports 12 positions using the side and align props on BrTooltipContent.
Advanced Usage
Features like manual control, custom delay, and rich content.
Theming
Customize the tooltip appearance globally using BrConfigProvider or locally using Tailwind CSS classes.
Global Customization
You can configure popover, popoverForeground, radius, shadow, and zTooltip in BrConfigProvider to affect all tooltips.
API
BrTooltip
The root component that manages the tooltip state.
BrTooltipTrigger
The button that triggers the tooltip.
BrTooltipContent
The component that pops out when the tooltip is open.