A tooltip is a small box that appears when hovering over an element.
Made by imskyleenInstallation
Usage
API Reference
TooltipProvider
| Prop | Type | Default |
|---|---|---|
children | React.ReactNode | - |
openDelay? | number | 700 |
closeDelay? | number | 300 |
transition? | Transition | { type: "spring", stiffness: 300, damping: 35 } |
Tooltip
| Prop | Type | Default |
|---|---|---|
children | React.ReactNode | - |
side? | Side | top |
sideOffset? | number | 0 |
align? | Align | center |
alignOffset? | number | 0 |
TooltipTrigger
| Prop | Type | Default |
|---|---|---|
asChild? | boolean | false |
...props? | HTMLMotionProps<"div"> | - |
TooltipContent
| Prop | Type | Default |
|---|---|---|
asChild? | boolean | false |
...props? | HTMLMotionProps<"div"> | - |
TooltipArrow
| Prop | Type | Default |
|---|---|---|
withTransition? | boolean | true |
...props? | React.ComponentProps<"svg"> | - |