Skip to content
  • System
  • Light
  • Dark
  • High contrast

Separator

The default orientation. Spans the full width of its container.

Above the line

Below the line

import { Separator } from '@eekodigital/raster';

<Separator />

Set orientation="vertical" to divide inline content. The separator fills the height of its flex container.

Left
Right
<Separator orientation="vertical" />

By default decorative={true} renders the element with role="none" — screen readers skip it. Set decorative={false} when the divider conveys meaningful structure; it will then carry role="separator".

PropTypeDefaultDescription
orientation”horizontal” | “vertical""horizontal”Direction of the divider.
decorativebooleantrueWhen true the element is hidden from assistive technology.
classNamestringAdditional CSS classes.