Tooltip
A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it. Requires Alpine.js.
Usage
Add to library
Sides
Use logical sides: top, bottom, start, end.
Top
End
Bottom
Start
With content slot
Press
⌘
K
Composition
code
Tooltip
├── TooltipTrigger
└── TooltipContent
Composed tooltip
API Reference
Tooltip
| Prop | Type | Default | Description |
|---|---|---|---|
label |
string |
— | Progressive tooltip text |
side |
top | bottom | start | end |
top |
Preferred side |
open |
bool |
false |
Initial open state |
Named slot: content for rich tooltip markup.