State
Issue 03
State is a word, not a hue.
On pressPrintedHold
Labels status or category. 11px text with outline, solid, and muted variants.
Issue 03
State is a word, not a hue.
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 { Badge } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/badge.
npx @noorddev/vlak-cli add badge
The StyleX leaf lands in components/vlak/, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/badge.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 { Badge } from "@noorddev/vlak-react";
<Badge>Recommended</Badge>
<Badge variant="solid">Delivered</Badge>
<Badge variant="muted">In progress</Badge>| Prop | Type | Default | Description |
|---|---|---|---|
variant | "outline" | "solid" | "muted" | "outline" | Outline for recommendations, solid for done, muted for pending. |
Also accepts HTMLAttributes<HTMLSpanElement>.
<span class="rs-badge">Recommended</span><span class="rs-badge-solid">Delivered</span><span class="rs-badge-muted">In progress</span>