Guides
Navigation
Feedback
Overlays
Layout
Data Display
Forms
.md

Layout

separator

Visual or semantic divider.

LaralCN-UI
Copy-and-own components
Blog Docs Source

Installation

php artisan ui:add separator

Usage

<x-ui.separator class="my-4" />

{{-- Vertical needs a height from the parent or from `class` --}}
<div class="flex h-6 items-center gap-4">
    <span class="text-sm">Docs</span>
    <x-ui.separator orientation="vertical" />
    <span class="text-sm">Blog</span>
</div>

orientation: horizontal (default) or vertical.

Props

Every prop with its default. Pass any of them as attributes, using : to bind a PHP value.

@props([
    'orientation' => 'horizontal',
])