v0.0.2
Demos (demo panel, opens in a new tab)

Divider

Separates blocks of content with a horizontal line; an optional short text can sit on the line.

zb:divider zubazar/ui · free (MIT)

Basic usage

Basic usage: view
BLADE

Without content, a thin horizontal line (<hr>) is drawn; set the space above and below with class, e.g. my-4.

blade
<p class="text-sm text-dim">The customer details were updated.</p>
<zb:divider class="my-4" />
<p class="text-sm text-dim">Next invoice: October 14, 2026.</p>
PropValues
classSpacing classes, e.g. my-4

With text

With text: view
BLADE

A short text in the slot is shown in the middle of the line; suited to the "or" separator on sign-in screens.

blade
<zb:button class="w-full">Sign in with email</zb:button>
<zb:divider>or</zb:divider>
<zb:button variant="white" class="w-full">Sign in with phone number</zb:button>

Text alignment

Text alignment: view
BLADE

align picks where the text sits (default center); use start to title form sections.

blade
<zb:divider align="start">Personal details</zb:divider>
<zb:divider>Address</zb:divider>
<zb:divider align="end">End</zb:divider>
PropValues
alignstart | center | end

Line style

Line style: view
BLADE

variant picks the line style (default solid); it works the same with or without text.

blade
<zb:divider />
<zb:divider variant="dashed" />
<zb:divider variant="dotted">Archive</zb:divider>
PropValues
variantsolid | dashed | dotted

Props

The values the component takes. What are props and slots?

PropTypeDefaultDescription
align—centerstart · center · end (when there is text)
variant—solidsolid · dashed · dotted

Slots: default content (optional divider text)

Zubazar UI · ZubazarDesigned for people.