# Separator

Divide adjacent content sections with a `1px` `--border` hairline horizontally or vertically.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| orientation | "horizontal" \| "vertical" | "horizontal" | Axis of the 1px divider line. |
| decorative | boolean | true | Renders role="none" when true, or role="separator" with aria-orientation when false. |

## Sizes and tokens

| Tier / Role | Token | Value |
| --- | --- | --- |
| Color | --border | Neutral step 7 |
| Thickness | --border-width-1 | 1px |

## Code

```tsx
import { Separator } from "@freshgemui/monoplinth";

export function Example() {
  return (
    <div className="space-y-4">
      <p>Section one</p>
      <Separator />
      <p>Section two</p>
    </div>
  );
}
```

## Do and don't

- **Do: Keep decorative=true for purely visual dividers** — Leave decorative at its default true when headings or lists already convey the section structure.
- **Don't: Expose every hairline to screen readers** — Do not set decorative={false} unless the divider marks a meaningful content boundary not represented by landmarks or headings.

## Accessibility

- Defaults to `role="none"` so decorative hairlines do not clutter screen-reader navigation.
- Setting `decorative={false}` renders `role="separator"` with `aria-orientation` matching `orientation`.

## Rationale

A hand-rolled `div` with `bg-border` avoids an external Radix dependency for a two-prop hairline primitive while preserving exact ARIA semantics.
