Separator
A 1px hairline rule, horizontal or vertical, optionally inset.
import { Separator } from "@arcadia/ui"A 1px --stroke-3 rule. inset pulls it in along its length by --separator-inset: 11px (--hairline-inset) when horizontal, so a hairline list's rules start where its text does, and 4px when vertical.
Examples
rootStyle takes where the rule sits and these knobs: its colour as a palette token, its inset as a spacing token.
| Knob | Takes | Default | Sets |
|---|---|---|---|
Paint | var(--stroke-3) | The rule's colour. | |
Ref<Space | Measure> | var(--hairline-inset) | How far inset pulls the rule in along its length (4px on a vertical rule). |
A role="separator" with aria-orientation, so assistive tech can announce the break between groups. It is never focusable and has no keys.
Use it where the groups are real, such as sections of a menu or a toolbar. Where the rule is only decoration between items that already have their own structure, like list items or a card's sections, hide it with aria-hidden so it isn't read as a stray separator.
Separator
orientation- "horizontal" | "vertical"Default"horizontal"
- Direction of the rule.
inset- boolean
- Inset along its length by --separator-inset: 11px (--hairline-inset) when horizontal, so a hairline list's rules start where its text does; 4px when vertical (toolbar dividers).
rootStyle- RootStyle<SeparatorKnobs>
- Typed StyleX override: layout and the
--separator-*knobs.
Rest props go to <div> props.