---
title: "Add a separator into Tiptap"
description: "Add a visual divider between content in menus, toolbars, or other UI elements. More in the docs!"
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/ui-components/primitives/separator.md)

# Add a separator into Tiptap

Add a visual divider between content in menus, toolbars, or other UI elements. More in the docs!

> **Upgrade to v3**
>
> To use UI components or templates you need to upgrade to Editor version 3.x. See the [upgrade
> guide](https://tiptap.dev/docs/resources/whats-new) for more details.

A visual divider between content in menus, toolbars, or other UI elements.

> **Interactive demo:** [separator](https://template.tiptap.dev/preview/tiptap-ui-primitive/separator)

## Install

You can add the primitive via Tiptap CLI (for Vite or Next.js)

```bash
npx @tiptap/cli add separator
```

### Manual Integration

For frameworks other than Vite or Next.js, add the primitive manually from the [open-source repository](https://github.com/ueberdosis/tiptap-ui-components/tree/main/apps/web/src/components/tiptap-ui-primitive/separator).

### Import styles

This component requires you to import our styles which were added to `styles/keyframe-animation.scss` and `styles/_variables.scss`.

## Usage

```tsx
import { Separator } from '@/components/tiptap-ui-primitive/separator'

export default function MyComponent() {
  return (
    <div className="tiptap-tools">
      <button>Button 1</button>
      <Separator />
      <button>Button 2</button>
    </div>
  )
}
```

## Props

### Separator

| Name        | Type                       | Default      | Description                  |
| ----------- | -------------------------- | ------------ | ---------------------------- |
| orientation | 'horizontal' \| 'vertical' | 'horizontal' | Orientation of the separator |
