---
title: Separator
description: Visually or semantically separates content.

link:
  doc: https://kobalte.dev/docs/core/components/separator
  api: https://kobalte.dev/docs/core/components/separator#api-reference
---

<ComponentPreview name="separator-demo">

```tsx file=<rootDir>/apps/docs/src/registry/examples/separator-demo.tsx

```

</ComponentPreview>

## Installation

<ComponentInstallation>

<Step>

<StepItem>Copy and paste the following code into your project:</StepItem>

  <ComponentSourceTabs>

    ```tsx title="components/ui/separator" file=<rootDir>/apps/docs/src/registry/ui/separator.tsx

    ```

    ```tsx title="components/ui/separator" file=<rootDir>/apps/unocss-playground/src/registry/ui/separator.tsx

    ```

  </ComponentSourceTabs>

</Step>

</ComponentInstallation>

## Usage

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

```tsx
<Separator />
```
