ComponentsFoundations
A hairline divider between content: card sections, menu and toolbar groups, the "or" on a sign-in form.
Radix Separator components/separator.tsxtheme · material · accent · density · font
Ayşe Kaya
Account executive · Istanbul office
12 open deals$184,200 pipelineJoined 2023
Installation
$ pnpm add @vamos-ui/react
The whole kit as one package — get updates by bumping the version. Add the styles to globals.css: @import "@vamos-ui/react/styles.css";
Usage
import { Separator } from "@vamos-ui/react";
<Separator />
<Separator orientation="vertical" />
<Separator label="or" />Examples
With label (sign-in)
The label is read as normal text; the lines around it are decorative.
Toolbar groups
Between meaningful groups, decorative={false} exposes role="separator" with aria-orientation.
Tones & inset
line (default), strong and nav; inset keeps the line off the card edges using --gap.
Dashboard
Posts
Media
Comments
Total items4
Content
Settings
API
Separator
| Prop | Type | Default |
|---|---|---|
orientationVertical separators stretch to the parent's height. | "horizontal" | "vertical" | "horizontal" |
decorativeHidden from assistive tech. Set false to announce it as a separator. | boolean | true |
labelText in the middle of a horizontal line. | ReactNode | — |
labelAlignWhere the label sits. | "start" | "center" | "end" | "center" |
toneHairline, field-border strength, or for the dark sidebar. | "line" | "strong" | "nav" | "line" |
insetInset by --gap (horizontal) or 6 px (vertical). | boolean | false |