<XrTooltip>
A hint shown while a ray, a fingertip or the mouse hovers what it wraps.
Usage
vue
<XrTooltip text="Switch light / dark">
<XrButton variant="ghost">Mode</XrButton>
</XrTooltip>API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
ui | Record<string, unknown> | {} | Escape hatch: raw uikit (@pmndrs/uikit) properties, merged last. |
disabled | boolean | Never show it (and hide it if shown). | |
parts | Partial<Record<"label" | "bubble", Record<string, unknown>>> | Raw uikit properties per inner part, merged after the defaults: bubble, label (its text). | |
placement | "top" | "bottom" | 'top' | Show it above (top) or below (bottom) what it wraps. |
delay | number | 400 | Hover time (ms) before it shows, so sweeping a ray across UI does not flash hints. |
text * | string | The hint. Short: one line, no wrapping. |