Job
Issue 03
The job is in design. Brief is behind. Build is next.
1Brief
2Design
3Build
Shows progress through ordered steps. 1px connectors; done fills with ink, active is outlined.
Issue 03
The job is in design. Brief is behind. Build is next.
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 { Stepper } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/stepper.
npx @noorddev/vlak-cli add stepper
The StyleX leaf lands in components/vlak/, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/stepper.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 { Stepper } from "@noorddev/vlak-react";
<Stepper steps={[{ name: "Brief" }, { name: "Design", sub: "In review" }, { name: "Build" }]} current={1} />| Prop | Type | Default | Description |
|---|---|---|---|
stepsrequired | Step[] | ||
currentrequired | number | 0-based index of the active step; everything before it is done. |
Also accepts HTMLAttributes<HTMLDivElement>.
<div class="rs-steps"><div class="rs-step"><span class="rs-step-dot rs-step-done">1</span><span class="rs-step-line"></span><span class="rs-step-name">Brief</span></div><div class="rs-step"><span class="rs-step-dot rs-step-active">2</span><span class="rs-step-name">Design</span></div></div>