Skip to content
Playground

Divider

A labelled or unlabelled structural rule with horizontal and vertical forms.

Divider separates related regions with a semantic separator. It supports two visual weights, two orientations, optional label content, and full-bleed geometry inside padded containers.

TSX
import { Divider } from "@zentara-co/zenos-ui";

Horizontal is the default. A vertical divider needs a parent with a meaningful height because it fills the parent’s block size.

Horizontal

Separates content along the block flow.

Editor

Preview

Use subtle for routine content boundaries and strong when adjacent regions need clearer separation. Variant changes visual weight only.

TSX
<Divider variant="subtle" /><Divider variant="strong" />

A label is centered between two rule segments and becomes the separator’s accessible name unless aria-label or aria-labelledby is supplied explicitly. Labels may contain text or a small component such as Badge.

isFullBleed extends a divider through padding defined by the inherited container variables. This keeps surrounding content aligned while the rule reaches the surface edges.

Activity

A regular divider stays inside the content padding.

A full-bleed divider reaches both container edges.

The content itself remains aligned to the padded inset.

Horizontal dividers read --container-padding-inline-start and --container-padding-inline-end. Vertical dividers use the corresponding block variables. An explicit style value can override the generated margins or dimensions.

API

PropTypeDefaultDescription
variant subtle | strong subtle Rule weight.
orientation horizontal | vertical horizontal Rule axis.
label ReactNode — Optional content between rule segments.
isFullBleed boolean false Extends through inherited container padding.
native props React.HTMLAttributes<HTMLDivElement> — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Divider always renders role="separator" and exposes aria-orientation. Use a visible label when it helps everyone understand the transition, or an explicit accessible name when the boundary needs context that is already visually apparent. Avoid using Divider as a substitute for headings or whitespace when the content hierarchy needs stronger structure.