# 分隔线 · JGuang UI

> 在内容区块之间建立视觉分隔。

- 页面: https://jiguang132.com/zh/systems/jguang-ui/docs/components/base/separator
- 改编自: shadcn/ui 文档 (MIT) @ bc0705384b51252af26dcc65425b216bf5eb063c
- 说明：正文保留英文原文。

> 示例 `separator-demo`: 交互预览见 https://jiguang132.com/zh/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.


> 示例 `separator-vertical`: 交互预览见 https://jiguang132.com/zh/systems/jguang-ui/docs/components/base/separator


## Menu

Vertical separators between menu items with descriptions.


> 示例 `separator-menu`: 交互预览见 https://jiguang132.com/zh/systems/jguang-ui/docs/components/base/separator


## List

Horizontal separators between list items.


> 示例 `separator-list`: 交互预览见 https://jiguang132.com/zh/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).


> 示例 `separator-rtl`: 交互预览见 https://jiguang132.com/zh/systems/jguang-ui/docs/components/base/separator


## API Reference

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

---

JGuang 全部资源索引: https://jiguang132.com/llms.txt
