structyl

Separator

stable

Visually or semantically separates content.

Basic usage

structyl

Docs
Source

Examples

Vertical separator

Use orientation="vertical" to separate inline items like nav links.

Horizontal and vertical

Use decorative separators for layout rhythm or semantic separators for regions.

Account
Billing and invoices
Docs
APIExamples

Features

  • Horizontal and vertical orientation.
  • Decorative or semantic.

Installation

bash
pnpm dlx structyl add separator

API Reference

Separator

A visual or semantic divider.

PropTypeDefault
orientation'horizontal' | 'vertical'

The axis of the separator.

'horizontal'
decorativeboolean

When true, removes it from the accessibility tree.

true
classNamestring

Additional Tailwind classes, merged with the component defaults.

Separator | structyl