Divider

Utilities

A visual separator for dividing content sections. Use dividers to create clear visual breaks between distinct pieces of content.

Import

import { Divider } from "@/components/ui/divider";

Usage

Horizontal Divider

Standard horizontal line separator

Content above the divider

Content below the divider

With Label

Divider with centered text

Vertical Divider

Vertical line for separating inline content

HomeProductsAbout

In Card

Divider separating card sections

Section 1

First section content

Section 2

Second section content

Section 3

Third section content

API Reference

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Direction of the divider
labelstringOptional text label in the center
childrenReactNodeAlternative to label prop for custom content

Related Components