Who
From @noordNoord ships Vlak. Door: vlak.dev..
Previews linked context on hover or keyboard focus.
From @noordNoord ships Vlak. Door: vlak.dev..
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 { HoverCard, Link } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/hover-card.
npx @noorddev/vlak-cli add hover-card
The StyleX leaf lands in components/vlak/, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/hover-card.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 { HoverCard, Link } from "@noorddev/vlak-react";
<HoverCard trigger={<Link href="/noord">@noord</Link>}>
Noord, a venture studio in Alkmaar. Ten portfolio companies, one design system.
</HoverCard>Preview panel on hover or keyboard focus. CSS shows it; the panel describes the trigger, and Escape hides it until the pointer leaves.
| Prop | Type | Default | Description |
|---|---|---|---|
triggerrequired | ReactNode | A focusable element is used as is; anything else gets one tab stop. | |
open | boolean | Keep the panel shown regardless of hover or focus: for docs, tests, and static previews. |
Also accepts HTMLAttributes<HTMLSpanElement>.
| Keys | Does |
|---|---|
| Tab | Focuses the trigger and shows the card |
| Escape | Hides the card until the pointer leaves |
<span class="rs-hover-card"><span tabindex="0" aria-describedby="noord-card">@noord</span><span class="rs-hover-card-panel" role="tooltip" id="noord-card">Noord, a venture studio in Alkmaar. Ten portfolio companies, one design system.</span></span>