Headless module
stems-ui/separator
separator wires a host element as an accessible separator between groups of content. App code owns
the markup and visual styles.
Base UI equivalent: Separator.
Usage
import { separator } from 'stems-ui/separator'
function Toolbar() {
return () => (
<div>
<button type="button">Bold</button>
<div class="h-4 w-px bg-border" mix={separator({ orientation: 'vertical' })} />
<button type="button">Link</button>
</div>
)
}
stems-ui/separator
separator(options?): wiresrole="separator",aria-orientation, anddata-orientation.orientation:'horizontal' | 'vertical'. Defaults to'horizontal'.decorative: whentrue, hides the separator from assistive technology (aria-hidden).
Behavior notes
<hr>hosts keep their implicit separator role.- Explicit host props win:
attrsonly fills in values the element does not already set.
Styling hooks
| Attribute | Values |
|---|---|
data-orientation | horizontal | vertical |