--- title: "separator" description: "Visual or semantic divider." category: "Layout" --- # separator Visual or semantic divider. ## Installation ```bash php artisan ui:add separator ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` ## Usage ```blade {{-- Vertical needs a height from the parent or from `class` --}}
Docs Blog
``` ## Example The demo rendered on the docs page. ```blade
LaralCN-UI
Copy-and-own components
Blog Docs Source
``` ## Source Copy this file to the path shown above it. `resources/views/components/ui/separator.blade.php` ```blade @props([ 'orientation' => 'horizontal', ]) @php $base = $orientation === 'vertical' ? 'h-full w-px' : 'h-px w-full'; $classes = \TailwindMerge\Laravel\Facades\TailwindMerge::merge( 'shrink-0 bg-border', $base, $attributes->get('class'), ); @endphp
except('class')->merge(['class' => $classes]) }}>
``` ## Theme tokens `--border` orientation: horizontal (default) or vertical.