Cite
Running copy
Read the install notes. The link is ink, never a second color.
Navigates to a page or resource. Hairline underline; in-copy variant is inset 1px.
Running copy
Read the install notes. The link is ink, never a second color.
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 { Link } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/link.
npx @noorddev/vlak-cli add link
The StyleX leaf lands in components/vlak/, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/link.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 { Link } from "@noorddev/vlak-react";
<Link href="/docs">A text link</Link>
<p>Read the <Link underline href="/docs">guide</Link> first.</p>Text link with a hairline underline. In-copy variant is inset 1px.
| Prop | Type | Default | Description |
|---|---|---|---|
underline | boolean | false | In-copy gradient underline, inset 1px. |
Also accepts AnchorHTMLAttributes<HTMLAnchorElement>.
| Keys | Does |
|---|---|
| Tab | Moves focus to the link |
| Enter | Follows it |
<div><a class="rs-link" href="#">A text link</a></div> <div><a class="rs-link-underline" href="#">An in-copy link</a></div>