Separator

A semantic or decorative divider. When semantic, exposes role="separator" to assistive technology.

Primitive: SeparatorARIA: role="separator" or role="none"
Section A
Section B
separator.rs
use stratum_leptos::*;

view! {
    <Separator />                         // decorative
    <Separator decorative=false />         // semantic
    <Separator orientation=Orientation::Vertical />
}

Installation

stratum add separator

Props

PropTypeDefaultDescription
orientationOrientationHorizontalDirection: Horizontal, Vertical
decorativebooltrueIf true, hidden from assistive tech (role="none")

Source

Primitive: separator.rs
Styled: separator.rs