Components
Tooltip
A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
Demo
Code
Hover me
Installation
Usage
Basic Usage
API Reference
Tooltip
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Content |
TooltipTrigger
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Trigger element |
asChild | boolean | false | Merges props with child component |
TooltipContent
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Tooltip content |
side | 'top' | 'bottom' | 'left' | 'right' | 'top' | Preferred side |
sideOffset | number | 4 | Distance from trigger |
className | string | — | Custom styles |