Hint
Hover the measure.204px module
Explains a control on hover or keyboard focus. A real element describes its trigger.
Three ways in. They share one source, so the pixels match whichever you pick.
npm install @noorddev/vlak-react
// once, next to your app's root
import "@noorddev/vlak-react/css";
import { Button, Tooltip } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/tooltip.
npx @noorddev/vlak-cli add tooltip
The StyleX leaf lands in components/vlak/ with its dependencies, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/tooltip.json
The same registry item, installed by shadcn's CLI.
<link rel="stylesheet" href="node_modules/@noorddev/vlak/css/vlak.css" />
No React. Link vlak.css and use the markup and classes below.
import { Button, Tooltip } from "@noorddev/vlak-react";
<Tooltip tip="Copy to clipboard">
<Button variant="ghost" size="sm" aria-label="Copy">Copy</Button>
</Tooltip>| Prop | Type | Default | Description |
|---|---|---|---|
tiprequired | string | Tip text. Shown on hover and on keyboard focus; Escape hides it. |
Also accepts HTMLAttributes<HTMLSpanElement>.
| Keys | Does |
|---|---|
| Tab | Focuses the trigger and shows the tip |
| Escape | Hides the tip until the pointer leaves |
<span class="rs-tip"><button class="rs-btn-ghost rs-btn-sm" aria-describedby="copy-tip">Copy</button><span class="rs-tip-bubble" role="tooltip" id="copy-tip">Copy to clipboard</span></span>