View fulldotdev/ui on GitHub

Separator

Visually or semantically separates content.

Installation

npx shadcn@latest add @fulldev/separator

Usage

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

Separator is decorative by default (role="none"). Pass decorative={false} when it conveys structure to assistive technology; it then renders role="separator" with aria-orientation.

Vertical

Use orientation="vertical" for a vertical separator. It stretches to the height of a flex row.

Vertical separators between menu items with descriptions.

List

Horizontal separators between list items.

RTL

API Reference

Source: src/components/ui/separator

PropTypeDefault
orientation"horizontal" | "vertical""horizontal"
decorativebooleantrue

Separator writes data-orientation and a data-horizontal or data-vertical attribute for styling.