# Separator

A horizontal or vertical divider.

Source: https://www.zazz.sh/api/primitives/separator/

## Installation

```bash
pnpm dlx zazz-ui add separator
```

Run `zazz-ui init` first if the project has no `zazz/` folder yet.

## Examples

### Default

```html
<div
  style="
    --display: flex-col;
    --gap: 4;
    --max-w: 96;
  "
>
  <div>
    <p
      style="
        --font-size: var(--font-size-sm);
        --font-weight: strong;
      "
    >
      Zazz Design Framework
    </p>
    <p
      style="
        --font-size: var(--font-size-sm);
        --text: var(--color-muted-foreground);
      "
    >
      Web-native primitives.
    </p>
  </div>

  <hr data-ui="separator" />

  <div
    style="
      --display: flex;
      --items: center;
      --gap: 2;
      --font-size: var(--font-size-sm);
    "
  >
    <a href="#" data-ui="button" data-button-variant="link">Docs</a>
    <hr data-ui="separator" data-separator-orientation="vertical" aria-orientation="vertical" />
    <a href="#" data-ui="button" data-button-variant="link">Components</a>
    <hr data-ui="separator" data-separator-orientation="vertical" aria-orientation="vertical" />
    <a href="#" data-ui="button" data-button-variant="link">Themes</a>
  </div>
</div>
```

## Attributes

| Attribute | Kind | Values |
| --- | --- | --- |
| `data-ui="separator"` | identity | free value |
| `data-separator-orientation` | preset | `vertical` |

## Hooks

| Hook | Default | State |
| --- | --- | --- |
| `--ui-separator-bg` | `var(--color-border)` | — |
| `--ui-separator-thickness` | `1px` | — |
