Separator

A separator visually divides content in lists, menus, or other places.

Components
Hooks
Components
Hooks
<div className="flex items-center gap-10">
  <div className="flex h-5 items-center gap-2 text-sm">
    <div>Components</div>
    <Separator orientation="vertical" />
    <div>Hooks</div>
  </div>
  <div className="flex flex-col items-center gap-2 text-sm">
    <div>Components</div>
    <Separator orientation="horizontal" />
    <div>Hooks</div>
  </div>
</div>

Installation

pnpm dlx shadcn@latest add @dotui/separator

Usage

Use separators to visually divide content in lists, menus, or other places.

import { Separator } from "@/components/ui/separator";
<Separator />

Playground

Use the controls below to experiment with different separator props and see the live preview and code update.

orientation

API Reference

Missing description.

PropType
Orientation
string

Last updated on 12/21/2025

dotUI

Bringing singularity to the web.

Built with passion by @mehdibha.