Skip to main content
  1. Docs
  2. Components
  3. Layout

Separator

A 1px line between groups of content, horizontal or vertical; decorative when it only draws.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div role="separator">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Import

separator.tsx
// From the package: a build keeps only what it uses.
import { Separator } from "@qeetrix/react";

// Or from its own path.
import { Separator } from "@qeetrix/react/separator";

02

Props

And every native attribute of the element it renders.

PropTypeDefaultWhat it does
orientation"horizontal" | "vertical""horizontal"A vertical one stretches to its row.
tone"subtle" | "default" | "strong""subtle"From the border tokens.
decorativebooleanfalseOnly visual: role="none".
renderReactElementa <div>Another element.

03

Parts

Each part carries a data-slot, for tests and placement.

data-slotElementWhat it is
separator<div role="separator">aria-orientation when vertical.
Next — SeparatorAccessibility