Divider
Flexible separators for splitting content horizontally or vertically. Add optional label content, switch orientation with the v variant, and adjust where the label sits with the placement utility.
At a glance
Section header
Supporting content continues below.
Playground
Current release
Natcore v2 preview
Swap direction, palette, and placement to inspect the exact utility markup generated for the divider.
<div class="bg-surface/40 w-full space-y-3 rounded-2xl p-4">
<div class="space-y-1">
<p class="text-sm opacity-75">Current release</p>
<p class="text-lg font-semibold">Natcore v2 preview</p>
</div>
<div
class="text-nowrap divider/primary divider-place-content-center w-full"
>
Overview
</div>
<p class="text-sm opacity-75">
Swap direction, palette, and placement to inspect the
exact utility markup generated for the divider.
</p>
</div>
Divider
Renders a horizontal divider line with an optional tone palette modifier and optional inline label content.
Horizontal
<div class="space-y-2">
<span class="text-sm opacity-75">Without label</span>
<div class="divider/surface"></div>
</div>
<div class="space-y-2">
<span class="text-sm opacity-75">With label</span>
<div class="divider/accent">Status</div>
</div>
Vertical Divider
Creates a vertical separator for side-by-side layouts, with optional label content and the same palette modifiers as the horizontal divider.
Vertical
<div
class="bg-surface/40 flex h-28 items-center justify-center gap-4 rounded-2xl px-4"
>
<span class="text-sm opacity-75">Left pane</span>
<div class="divider-v/primary h-full"></div>
<span class="text-sm opacity-75">Right pane</span>
</div>
<div
class="bg-surface/40 flex h-28 items-center justify-center gap-4 rounded-2xl px-4"
>
<span class="text-sm opacity-75">Choice A</span>
<div class="divider-v/success h-full">OR</div>
<span class="text-sm opacity-75">Choice B</span>
</div>
Content Placement
Moves the divider label toward the start, center, or end of the available line space. Compose it with either orientation when the default centered label needs to align with surrounding content.
Named placements
<div
class="divider/primary divider-place-content-before-start"
>
Start aligned
</div>
<div
class="divider/secondary divider-place-content-before-center"
>
Center aligned
</div>
<div
class="divider/accent divider-place-content-before-end"
>
End aligned
</div>
API Reference
Classes