Tooltip
Portal-rendered floating hint for icon buttons, status indicators, and keyboard shortcuts.
Interactive Tooltips
Portal-rendered floating labels supporting top, bottom, left, and right positioning with customizable delay.
tooltip-example.tsx
Quick Import
Example.tsxtsx
1import { Tooltip, Button } from "@rekodo/react";2
3export function Example() {4 return (5 <Tooltip content="Play Track" side="top">6 <Button size="icon"></Button>7 </Tooltip>8 );9}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| content | ReactNode | required | Label content displayed inside the floating tooltip. |
| side | "top" | "bottom" | "left" | "right" | "top" | Preferred placement relative to trigger. |
| delayMs | number | 200 | Hover delay before showing the tooltip in milliseconds. |