Layout

Separator

A thin line between blocks of content, horizontal or vertical, optionally with a label in the middle such as "or".

Blade

A 1px gray line across the full width, announced to screen readers as a separator.

With a label #

Two lines with "or" between them, centered, in muted semibold text. The label is translated; the slot can be used instead for any markup.

Blade

Vertical #

A 1px line as tall as the row, between the two links, with aria-orientation="vertical".

Slot content #

The slot takes the place of label, for an icon or any markup in the middle of the line.

Blade

Vertical with a label #

A label works on a vertical separator too: two lines with the text between them, one above the other.

Left

Right

Blade

Rendering from data #

A labelled separator between each group of an activity feed.

Invoice INV-1042 paid

New customer: Ana Souza

Order #981 shipped

Plan changed to Business

Two-factor authentication enabled

Blade

Customization #

Classes go to the line (both halves when there is a label); content: reaches the label.

Blade

Reference

tk:separator

Prop Type Default Description
label string | slot null Text in the middle of the line, translated. The default slot takes its place.
vertical bool false A vertical line, as tall as its container.

Slots

Slot Description
default The content in the middle of the line, in place of label.

Prefixes

Prefix Goes to
content: The label in the middle (content:class="mx-2 text-xs uppercase").

Customization

Classes and attributes go to the line. With a label, classes go to both halves and the other attributes (id, wire:key, aria-*...) to the separator around them. The label takes a prefix (listed in the Reference above).

blade

Accessibility

role="separator", with aria-orientation="vertical" when vertical. The label is text inside the separator: Chrome exposes it, but ARIA treats a separator's children as presentational, so some screen readers announce only "separator". Don't put information only in the label.