Separator

A thin divider between content, horizontal or vertical, decorative by default or exposed to assistive technology when it marks a real grouping.

import { Separator } from "@plexui/vue/components/Separator";

Examples

Overview

Vertical

List

API

Separator

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the divider
decorativebooleantrueWhen true, the separator is ignored by assistive technologies. Set false when the divider carries semantic grouping (renders role="separator").
classstringApplied to the root <div>

All other <div> attributes are forwarded. Built on Reka UI Separator.

Styling

Colors and thickness are controlled by component tokens:

  • --separator-color: background color (defaults to --color-border)
  • --separator-thickness: line thickness (defaults to 1px)

Override them at any scope to change the divider's look:

.my-section {
  --separator-color: var(--color-border-strong);
  --separator-thickness: 2px;
}