# Separator

An inset or full hairline between groups, or a centred word with no lines at a stream boundary.

Live variants: https://design.arcadia.is/components/separator

```tsx
import { Separator } from "@arcadia/ui";
```

```tsx
import { Separator } from "@arcadia/ui";

<div {...sx("cmp-list", cmp.list)}>
  <span {...sx(null, cmp.listItem)}>Start with a plan</span>
  <Separator inset />
  <span {...sx(null, cmp.listItem)}>Debug an issue</span>
  <Separator inset />
  <span {...sx(null, cmp.listItem)}>Review the changes</span>
</div>
```

## Accessibility

A `role="separator"` with `aria-orientation`, so assistive tech can announce the break between groups. It is never focusable and has no keys.

A marker with a `label` takes that word as its accessible name. A screen reader finds the named separator in transcript reading order. It is not a live region or a Tab stop. A stream that offers a jump to unread puts the keyboard action on its jump button, not on the marker.

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.

## API reference

### Separator

- `orientation` (`"horizontal" | "vertical"`, default `"horizontal"`): Direction of the rule.
- `inset` (`boolean`): Inset along its length by --separator-inset: 12px (--hairline-inset) when horizontal, so a hairline list's rules start where its text does; 4px when vertical (toolbar dividers).
- `label` (`string`): A stream marker ("Unread"): a centred Caption in quiet ink, or the accent's with `tone="accent"`, and no rule. Also its accessible name. Horizontal only; a moment is a `TimeSeparator`.
- `tone` (`"neutral" | "accent"`, default `"neutral"`)
- `rootStyle` (`RootStyle<SeparatorKnobs>`): Typed StyleX override: layout and the `--separator-*` knobs.

Rest props go to `<div>` props.
