Server Component · 0 KB client JS

Separator

A dividing line between content: horizontal or vertical, with semantic role built in.

Astralis UI

A dividing line with the separator role built in: horizontal by default, one prop to go vertical.

Import#

import { Separator } from "astralis-ui";

Vertical#

orientation="vertical" flips it; it stretches to its container's cross axis, so give the row a height (or let alignment do it).

Docs

Components

Changelog

Variants#

Line style via variant; color and thickness come from the Box border props.

solid
dashed
dotted
colored via borderColor

Props#

Separator extends Box. Use borderColor / border to restyle the line.

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Line direction; also sets `aria-orientation`.
variant"solid" | "dashed" | "dotted""solid"Line style.

Accessibility#

Renders with role="separator" and the matching aria-orientation, so screen readers announce the division without any extra work.