Skip to content
TallCraftUI

Separator

Horizontal divider between groups of content.

Basic usage

  • PHP

  • Laravel

  • Livewire
HTML
<ul class="flex flex-col w-full sm:w-1/2">
<li>PHP</li>
<x-separator />
<li>Laravel</li>
<x-separator />
<li>Livewire</li>
</ul>

Customization

  • PHP

  • Laravel

  • Livewire
HTML
<ul class="flex flex-col w-full sm:w-1/2">
<li>PHP</li>
<x-separator class="my-3 h-0.5 bg-primary dark:bg-primary" />
<li>Laravel</li>
<x-separator class="my-3 h-0.5 bg-primary dark:bg-primary" />
<li>Livewire</li>
</ul>

API reference

Props are read from the component classes in TallCraftUI 3.0.0-beta.1. Write them in kebab-case and pass booleans as bare attributes, for example <x-button outline />. Other attributes, such as class or wire:model, are passed to the component's element.

<x-separator>

View source
Prop Type Default
title string null
icon string null
icon-outline bool false