--- title: Separator description: Visually or semantically separates content. base: base component: true links: doc: https://base-ui.com/react/components/separator api: https://base-ui.com/react/components/separator#api-reference --- ## Installation Command Manual ```bash npx shadcn@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 showLineNumbers import { Separator } from "@/components/ui/separator" ``` ```tsx showLineNumbers ``` ## Examples ### Vertical Use `orientation="vertical"` for a vertical separator. ### Menu Vertical separators between menu items with descriptions. ### List Horizontal separators between list items. ## RTL To enable RTL support in shadcn/ui, see the [RTL configuration guide](/docs/rtl). ## API Reference See the [Base UI Separator](https://base-ui.com/react/components/separator#api-reference) documentation.