Tooltips provide helpful context for interactive elements, appearing when users hover or focus on them.
@radix-ui/react-tooltip
Install the following dependencies:
This component is based on the <button> element and supports all of its props and adds:
Contains all the parts of a tooltip.
| Prop | Type | Default |
|---|---|---|
| delayDuration | number | 0 |
| open | boolean | false |
| Prop | Type | Default |
|---|---|---|
| asChild | boolean | false |
| Prop | Type | Default |
|---|---|---|
| side | top, right, bottom, left | top |
| align | start, center, end | center |
| sideOffset | number | 0 |