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="divider/primary divider-place-content-before-centerw-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
Adds the v variant to rotate the divider into a vertical separator while keeping the same palette and content behavior.
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. Accepts named tokens or arbitrary percentages.
Placement Utility
Named placements
<div
class="divider-place-content-before-start divider/primary"
>
Start aligned
</div>
<div
class="divider-place-content-before-center divider/secondary"
>
Center aligned
</div>
<div
class="divider-place-content-before-end divider/accent"
>
End aligned
</div>
API Reference
Classes
CSS Variables