This page as markdown: /separator.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt

Separator

Status: stable

A hairline divider. Horizontal full-width rule or vertical 1px column, tinted with the border token. Optional centered label (horizontal) for a captioned section divider.

Keywords: separator, divider, section break, rule

Usage

Use Separator to divide related groups where spacing alone does not provide enough structure.

Best practices

Props

Name Type Default Description
orientation "horizontal" | "vertical" "horizontal" Axis of the rule. Vertical stretches to its flex parent's height.
label ReactNode — When set (horizontal only), centers a muted caption between two hairline rules.
render ReactElement | (props, state) => ReactElement — Compose with another element/component through the Base UI render prop. Ignored on the labeled variant.

Variants

Tokens used

border, muted-foreground

Accessibility

Related

Examples

Horizontal

import { Separator } from "@sableui/react"

<Separator />

Labeled section divider

import { Separator } from "@sableui/react"

<Separator label="Other holdings" />

Vertical (inside a flex row)

import { Row, Separator } from "@sableui/react"

<Row gap={3} className="h-6 items-center"><span>Edit</span><Separator orientation="vertical" /><span>Delete</span></Row>