Separator

A visual divider between content sections.

Installation

$
npx shadcn@latest add https://ui.mattdowney.com/r/separator.json

Usage

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

Examples

Default

A divider between two blocks of content. It ships no margin, so the space around it comes from the container's own gap, here a Stack.

Above

Below

Vertical

Vertical separators need an explicit height from their container (here a flex h-5 row).

DocsComponentsSettings

API Reference

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the divider. Vertical separators need an explicit height from their container.
orientation"horizontal" | "vertical" = "horizontal"Direction of the divider. Vertical separators need an explicit height from their container.