---
title: "Separator"
description: "A horizontal or vertical divider between content, with the separator role for assistive technology. Built on Base UI."
plan: Free
docs: https://ui.edbn.me/docs/components/separator
---

# Separator

A horizontal or vertical divider between content, with the separator role for assistive technology. Built on Base UI.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/separator.json
```

## Dependencies
- npm: @base-ui/react@^1.8.0
- edbn: edbn-base

## Usage

```tsx examples/separator-basic.tsx
"use client";
import { Separator } from "@/components/ui/separator";

export default function SeparatorBasicPreview() {
  return (
    <div className="w-full max-w-xs">
      <p className="text-foreground">edbn/ui</p>
      <p className="text-[13px] text-muted-foreground">Base UI components</p>
      <Separator className="my-4" />
      <div className="flex h-5 items-center gap-4">
        <span>Docs</span>
        <Separator orientation="vertical" />
        <span>Registry</span>
      </div>
    </div>
  );
}
```

## Files
- components/ui/separator.tsx (26 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
