

<Preview name="HorizontalSeparatorExample" />

## Overview [#overview]

The `Separator` component provides a visual divider to separate content sections. It can be oriented horizontally or vertically and is built on Base UI primitives for accessibility.

## Usage [#usage]

```tsx
import { Separator } from "@tilt-legal/cubitt-components/primitives";
```

```tsx
// Horizontal separator (default)
<Separator />

// Vertical separator
<Separator orientation="vertical" />
```

## Examples [#examples]

### Horizontal [#horizontal]

Use a horizontal separator to divide content sections vertically.

<Tabs items="[&#x22;Preview&#x22;, &#x22;Code&#x22;]">
  <Tab value="Preview">
    <Preview name="HorizontalSeparatorExample" />
  </Tab>

  <Tab value="Code">
    ```tsx
    import { Separator } from "@tilt-legal/cubitt-components/primitives";

    export default function Component() {
      return (
        <div className="w-full max-w-md space-y-4">
          <div>
            <h3 className="text-sm font-medium">Section One</h3>
            <p className="text-sm text-muted-foreground">
              This is the first section of content.
            </p>
          </div>
          <Separator />
          <div>
            <h3 className="text-sm font-medium">Section Two</h3>
            <p className="text-sm text-muted-foreground">
              This is the second section of content.
            </p>
          </div>
        </div>
      );
    }
    ```
  </Tab>
</Tabs>

### Vertical [#vertical]

Use a vertical separator to divide content sections horizontally.

<Tabs items="[&#x22;Preview&#x22;, &#x22;Code&#x22;]">
  <Tab value="Preview">
    <Preview name="VerticalSeparatorExample" />
  </Tab>

  <Tab value="Code">
    ```tsx
    import { Separator } from "@tilt-legal/cubitt-components/primitives";

    export default function Component() {
      return (
        <div className="flex items-center gap-4 h-12">
          <span className="text-sm">Item One</span>
          <Separator orientation="vertical" />
          <span className="text-sm">Item Two</span>
          <Separator orientation="vertical" />
          <span className="text-sm">Item Three</span>
        </div>
      );
    }
    ```
  </Tab>
</Tabs>

## API Reference [#api-reference]

### Separator [#separator]

A visual divider for separating content.

| Prop          | Type                         | Default        | Description                               |
| ------------- | ---------------------------- | -------------- | ----------------------------------------- |
| `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | The orientation of the separator.         |
| `className`   | `string`                     | —              | Additional CSS classes for the separator. |
