overlay/@mihcm/ui·v0.21.0·stable
Tooltip
Hover/focus tooltip (web) or long-press tooltip (native). Configurable side and delay.
Props
The full prop API for Tooltip. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
content | ReactNode | — | Tooltip content text or element. Required. | 0.5.0 |
side | 'top' | 'bottom' | 'left' | 'right' | 'top' | Which side to display the tooltip. | 0.5.0 |
delayMs | number | 300 | Delay before showing (ms). | 0.5.0 |
interactive | boolean | false | Allows pointer interaction inside the tooltip body. Prefer Popover for interactive content. | 0.10.1 |
contentClassName | string | — | Extra classes on the tooltip body. Use whitespace-normal only for intentional wrapping. | 0.10.1 |
Import
import { Tooltip } from '@mihcm/ui/Tooltip';