# Separator · JGuang UI

> Visually or semantically separates content.

- Page: https://jiguang132.com/systems/jguang-ui/docs/components/base/separator
- Based on: shadcn/ui documentation (MIT) @ bc0705384b51252af26dcc65425b216bf5eb063c

> Example `separator-demo`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/separator


## Installation


  

**Command**


  

**Manual**


```text
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
```


### Install the following dependencies:


```bash
npm install @base-ui/react
```


### Copy and paste the following code into your project.


[View complete source: components/ui/separator.tsx](/r/jguang-ui/base/separator.json)


### Update the import paths to match your project setup.


## Usage

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

```tsx showLineNumbers
<Separator />
```

## Vertical

Use `orientation="vertical"` for a vertical separator.


> Example `separator-vertical`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/separator


## Menu

Vertical separators between menu items with descriptions.


> Example `separator-menu`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/separator


## List

Horizontal separators between list items.


> Example `separator-list`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/separator


## RTL

To enable RTL support in JGuang UI, see the [RTL configuration guide](/systems/jguang-ui/docs/rtl).


> Example `separator-rtl`: interactive preview on https://jiguang132.com/systems/jguang-ui/docs/components/base/separator


## API Reference

See the [Base UI Separator](https://base-ui.com/react/components/separator#api-reference) documentation.

---

Index of all JGuang resources: https://jiguang132.com/llms.txt
