Components/Separator

Separator

A simple horizontal or vertical divider line for visually grouping content.

import { Separator } from "@animui/ui"

Horizontal

Section one

Section two

Vertical

HomeDocsBlog

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the divider line.
decorativebooleanfalseWhen true, omits the separator role and aria-orientation for purely visual dividers.
classNamestringAdditional classes for the divider.

Accessibility

  • Renders with role="separator" and aria-orientation unless decorative is set.
  • Use decorative when the divider is purely visual and adjacent content already conveys the grouping.
© 2026 Steal Shadow. MIT License.Report an issue