Zephora UI

Layout

Divider

Visual separator rendered as an <hr> — or as a role="separator" element with centered content when a label is given. Supports vertical orientation and dashed lines.

Import

import { Divider } from "@zephora/react";

Examples

Basic

Solid by default; `variant="dashed"` switches the line style.

Above


Between


Below

With label

The label is centered between two lines.

Vertical

Vertical dividers separate inline items; give the row a height.

Docs
API
Blog

API

Divider props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Axis of the separator line.
labelReactNodeContent rendered centered with a line on both sides. Switches the element from <hr> to a div with role="separator".
variant"solid" | "dashed""solid"Line style.
spacingnumber | stringMargin along the block axis (inline axis when vertical). Numbers are a 0.25rem grid (4 → 1rem).
unstyledbooleanfalseHeadless mode — skips Zephora styling.