---
title: Separator
description: A separator element accessible to screen readers.
links:
doc: https://base-ui.com/react/components/separator#api-reference
---
## Preview
## Installation
CLI
Manual
```bash
npx @olyx/cli@latest add separator
```
Install the following dependencies:
```bash
npm install @base-ui/react
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx
import { Separator } from "@/components/ui/separator"
```
```tsx
```
## API Reference
### Separator
Styled wrapper for `Separator` from Base UI.
| Prop | Type | Default |
| ------------- | ----------------------------------------------------- | -------------- |
| `variant` | `"line" \| "solid-text" \| "content" \| "underline"` | `"line"` |
| `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` |
## Examples
### Solid Text
### Content
### Underline