Tooltip
Explain UI elements on hover. Keep interface minimal. Educate users.
Net MRR
$18,240
+6.4% vs February
Installation
pnpm dlx nachui add tooltipAnatomy
Composition
Use the following composition to build a
Tooltip:Features
- Multiple positions - Top, bottom, left, or right placement
- Delay control - Configurable hover delay
- Smooth animations - Fade and blur entrance effects
- Arrow indicator - Visual pointer to the trigger element
Variants
Positions
API Reference
Tooltip
| Prop | Type | Default | Description |
|---|---|---|---|
delayDuration | number | 200 | Delay before showing (ms) |
open | boolean | - | Controlled open state |
onOpenChange | (open: boolean) => void | - | Callback when state changes |
Tooltip.Trigger
| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | false | Render as child element |
className | string | - | Additional CSS classes |
Tooltip.Content
| Prop | Type | Default | Description |
|---|---|---|---|
side | 'top' | 'bottom' | 'left' | 'right' | 'top' | Tooltip position |
sideOffset | number | 4 | Distance from trigger (px) |
className | string | - | Additional CSS classes |
Variants
Different Positions
Custom Delay
Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.