Separator

Visually or semantically separates content with horizontal or vertical dividers.

Separator

A visual divider between sections.

DocsAPISource

Installation

CLI

Install the component using the StarUI CLI:

star add separator

Examples

Vertical

Vertical separators grouping related toolbar actions

Accessibility

Decorative vs semantic separators for screen readers

Decorative

Default. Renders aria-hidden="true" — invisible to screen readers.

Semantic

Renders role="separator" and aria-orientation — announced as a content boundary.

Custom Styles

Thickness, color, dashed, and gradient variations

Default

Thick

Colored

Dashed

Gradient

API Reference

Props

Prop Type Default Description
orientation Literal['horizontal', 'vertical'] 'horizontal' Orientation of the separator
decorative bool True If True (default), adds aria-hidden. If False, adds role="separator" and aria-orientation
cls str '' Additional CSS classes