Component

Separator

Divide adjacent groups with a quiet rule that can be decorative or exposed to assistive technology.

Interactive preview

Usage

Import the component entry and start with its smallest complete example.

Import

import { Separator } from "@chitrank2050/monoline-ui/separator"

Basic usage

<div>
  <p>Account</p>
  <Separator />
  <p>Billing</p>
</div>

Usage guidance

Choose the component for its interaction model and semantics before customizing its appearance.

01
Use when

Separator creates a quiet visual or semantic boundary between adjacent sections, items, or control groups.

02
Avoid when

Spacing alone explains the grouping, or a heading and section boundary would communicate the structure more clearly.

03
Accessibility

Separator is decorative by default and stays out of the accessibility tree. Set decorative to false only when the divider carries structural meaning.

04
Client Component

This component needs browser JavaScript for state or browser APIs.

API reference

Props, slots, and callbacks available on this component.

orientation"horizontal" | "vertical"Axis of the divider
decorativebooleanRemoves separator semantics when purely visual

Design tokens

Theme variables this component reads for color, spacing, and motion.

--border-strongCSS varDivider color
--border-thinCSS varDivider thickness

Implementation

The source used by the example above, including any state it needs.

<div>
  <p>Account</p>
  <Separator />
  <p>Billing</p>
</div>