---
title: Separator
description: Visually or semantically separates content.
component: true
radix:
  link: https://www.radix-ui.com/docs/primitives/components/separator
  api: https://www.radix-ui.com/docs/primitives/components/separator#api-reference
---

<ComponentExample
  src="/components/examples/separator/demo.tsx"
  extractClassname
>
  <SeparatorDemo />
</ComponentExample>

## Installation

```bash
npx shadcn-ui add separator
```

<Accordion type="single" collapsible>
  <AccordionItem value="manual-installation">
    <AccordionTrigger>Manual Installation</AccordionTrigger>
    <AccordionContent>

1. Install the `@radix-ui/react-separator` component from radix-ui:

```bash
npm install @radix-ui/react-separator
```

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

<ComponentSource src="/components/ui/separator.tsx" />

<Callout>
  This is the `<Separator />` primitive. You can place it in a file at
  `components/ui/separator.tsx`.
</Callout>

    </AccordionContent>

  </AccordionItem>
</Accordion>

## Usage

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

```tsx
<Separator />
```
