# Separator

> Visual separator for horizontal or vertical layouts.

Registry name: `separator`. HTML docs: https://ui.anuragroy.dev/component/separator.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/separator.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/separator.json`.

Registry JSON: https://ui.anuragroy.dev/r/separator.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/separator.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import { Separator } from "@/components/ui/separator"
```

## Usage

```tsx
import { Separator } from "@/components/ui/separator"

export function Example() {
  return (
    <div className="flex flex-col gap-3">
      <div>Above</div>
      <Separator />
      <div>Below</div>
    </div>
  )
}
```

## API

### Separator

Base UI Separator.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `orientation` | "horizontal" \| "vertical" | "horizontal" |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/separator): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/separator.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
