Trail
Studio / Vlak / Issue 03 — ancestors stay ink. The page is full ink.
A line of type that connects
Shows a page's place in a hierarchy. Ancestors are links; the current page is full ink.
Studio / Vlak / Issue 03 — ancestors stay ink. The page is full ink.
A line of type that connects
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 { Breadcrumbs } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/breadcrumbs.
npx @noorddev/vlak-cli add breadcrumbs
The StyleX leaf lands in components/vlak/, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/breadcrumbs.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 { Breadcrumbs } from "@noorddev/vlak-react";
<Breadcrumbs items={[{ label: "Studio", href: "/studio" }, { label: "Vlak", href: "/studio/vlak" }, { label: "Components" }]} />A trail: ordered list in a nav, the current page marked.
| Prop | Type | Default | Description |
|---|---|---|---|
itemsrequired | Crumb[] |
Also accepts HTMLAttributes<HTMLElement>.
| Keys | Does |
|---|---|
| Tab | Moves between the ancestor links |
| Enter | Follows the link |
<p class="rs-crumbs"><a class="rs-crumbs-link" href="/">Studio</a><span class="rs-crumbs-sep">/</span><span class="rs-crumbs-here">Vlak</span></p>