Layout

Dividers for layout separation

Dividers add low-noise separation between stacked sections, split panes, and list rows. Ideal for React settings pages and Next.js admin shells that need structure without heavy chrome.

Examples

Vertical divider between two columns.


LeftRight

Divider variants examples

Tone, orientation, thickness, and optional label slot. Each snippet opens with Variant: naming the row.
































What it does

Orientation props cover row vs column stacks.

Combine with spacing utilities rather than hard-coded margins inside the primitive.

Composition and API

Prefer compound subcomponents instead of one oversized prop bag. Export a small, documented API for your design system.

Do not use dividers as the only way to convey grouping—pair with headings or labels.

Common use cases

  • Split form sections without adding new headings.
  • Separate comments from primary content in feeds.
  • Add subtle breaks between toolbar clusters.
  • Balance dense tables with horizontal rules.

Accessibility

Keyboard order, focus rings, and ARIA attributes should match production usage. Test with your supported browsers and assistive technologies when semantics are non-trivial.

This preview page exposes a single h1 in the hero for a clean outline.

Next.js integration notes

Colocate examples under the App Router, keep server and client boundaries explicit, and avoid pulling interactive overlays into unexpected server layouts.

Set NEXT_PUBLIC_SITE_URL so canonical and Open Graph URLs resolve on deploy.

FAQ

Does the Divider component work with Next.js App Router?

Yes. Import it like any other React component; keep interactive subtrees in client components when you need hooks or browser APIs, and leave static structure in server components where possible.

Can I customize divider with Tailwind CSS?

Zentauri UI exposes class-friendly variants and slots so you can extend styles with Tailwind utilities without fighting inline styles.

Is this Divider implementation accessible by default?

Primitives follow sensible defaults, but accessibility depends on how you label controls, manage focus, and wire keyboard handlers in your app. Validate critical flows with keyboard-only use and screen readers.