Rule
Above the fold.
Below it. One hairline.
Separates related regions with a 1px horizontal or vertical rule.
Above the fold.
Below it. One hairline.
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 { Separator } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/separator.
npx @noorddev/vlak-cli add separator
The StyleX leaf lands in components/vlak/, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/separator.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 { Separator } from "@noorddev/vlak-react";
<Separator />
<Separator orientation="vertical" style={{ height: 16 }} />| Prop | Type | Default | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | "horizontal" |
Also accepts HTMLAttributes<HTMLElement>.
<hr class="rs-sep" />