sc1m/design
ComponentsSeparator

Separator

Separator component built on Base UI, styled with sc1m tokens.

StableBase UI

Live preview

Above
Below

Installation

pnpm dlx shadcn@latest add @sc1m/separator

This also merges the token layer and installs src/lib/cn.ts plus @base-ui/react. For the manual route — prerequisites, components.json, and app-level setup — see Installation.

Usage

import { Separator } from "@/components/ui/separator";

Example

The preview above, with its source. This is the demo module verbatim, so the code and the thing it renders cannot drift apart.

Above
Below
<div className="w-64 text-sm text-fg">
  <div>Above</div>
  <Separator className="my-3" />
  <div>Below</div>
</div>

API reference

Each part forwards every prop of its Base UI counterpart; the tables list the ones declared on the part itself. See Base UI's reference for the inherited element props.

Separator

PropTypeDefaultDescription
orientationOrientation'horizontal'The orientation of the separator.

Accessibility

Behaviour, focus management, and ARIA wiring come from Base UI's Separator — see its reference for the full keyboard map.

Design tokens

The component reads semantic tokens only — no raw colour, radius, or duration appears in its source. Override the token, not the component.

TokenApplied to
--lineSeparator

Source

src/components/ui/separator/separator.tsx — no next/* imports, so it drops into any React 19 + Tailwind v4 app.