Divider

Thin line that separates content, horizontal or vertical, with an optional centred label. An optional soft style fades the lines from the edges toward the label, and can brighten them.

Preview

Installation

npx @lumioui/cli add divider

Usage

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

Examples

Labeled

The labeled rule where it actually lives: the "or" between email sign-in and the other ways in.

Vertical

Vertical rules between the facts strip under an app listing, the app-store idiom.

API reference

Prop Type Default
label string

Text rendered in the middle of the line.

—
orientation "horizontal" | "vertical"

Line direction. Default "horizontal".

"horizontal"
className string —
labelClassName string

Extra classes for the label text.

—
seam boolean

Labeled rule only: draw it as a lit seam — each rule fades in from its outer end to full strength at the label. Default false.

false
lit boolean

Seam only: brighten the seam one step (crossfades over timing.fast).

false