apps/v4/content/docs/components/base/separator.mdx
npx shadcn@latest add separator
<Step>Install the following dependencies:</Step>
npm install @base-ui/react
<Step>Copy and paste the following code into your project.</Step>
<ComponentSource name="separator" title="components/ui/separator.tsx" styleName="base-nova" />
<Step>Update the import paths to match your project setup.</Step>
</Steps> </TabsContent> </CodeTabs>import { Separator } from "@/components/ui/separator"
<Separator />
Use orientation="vertical" for a vertical separator.
Vertical separators between menu items with descriptions.
<ComponentPreview styleName="base-nova" name="separator-menu" />Horizontal separators between list items.
<ComponentPreview styleName="base-nova" name="separator-list" />To enable RTL support in shadcn/ui, see the RTL configuration guide.
<ComponentPreview styleName="base-nova" name="separator-rtl" direction="rtl" />See the Base UI Separator documentation.