> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Separator

A one-pixel line in the border color that divides content, horizontally or vertically.


## Installation

```bash
npx @blotch/dolan add separator
```

```typescript
import { UiSeparator } from '../components/ui/separator';
```

## Usage

```typescript title="src/app/app.ts"
import { Component } from '@angular/core';
import { LYNX_ELEMENTS } from '@blotch/angular-lynx';
import { UiSeparator } from '../components/ui/separator';

@Component({
  selector: 'app-root',
  imports: [LYNX_ELEMENTS, UiSeparator],
  template: `
    <view class="flex flex-col gap-4">
      <text class="text-sm text-foreground">Account</text>
      <ui-separator />
      <text class="text-sm text-foreground">Billing</text>
    </view>
  `,
})
export class App {}
```

A horizontal separator spans the full width of its parent.

### Vertical

```angular-html
<view class="flex h-5 flex-row items-center gap-4">
  <text class="text-sm text-foreground">Blog</text>
  <ui-separator orientation="vertical" />
  <text class="text-sm text-foreground">Docs</text>
</view>
```

A vertical separator stretches to the full height of its row, even when the row sets `items-center`. Set the row's height to set the line's length.

### Spacing

```angular-html
<ui-separator class="my-4" />
```

The separator is one element, so margin classes on it work like on a `<view>`.

## API

### UiSeparator

| Input         | Type                         | Default        | Description                          |
| ------------- | ---------------------------- | -------------- | ------------------------------------ |
| `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | A full-width or a full-height line.  |
| `class`       | `string`                     | `''`           | Extra Tailwind classes for the line. |

No outputs.

## Related

- [Card](/dolan/card.md)
- [Theming](/dolan/theming.md): the `border` color it uses
