sackey 6b878bb0a0
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
Initial commit
2025-09-12 16:19:56 +00:00

25 lines
627 B
PHP

@pure
@props([
'heading' => null,
])
@php
$classes = Flux::classes()
->add('-mx-[.3125rem] px-[.3125rem]')
->add('[&+&>[data-flux-menu-separator-top]]:hidden [&:first-child>[data-flux-menu-separator-top]]:hidden [&:last-child>[data-flux-menu-separator-bottom]]:hidden')
;
@endphp
<div {{ $attributes->class($classes) }} role="group" data-flux-menu-group>
<flux:menu.separator data-flux-menu-separator-top />
<?php if ($heading): ?>
<flux:menu.heading>{{ $heading }}</flux:menu.heading>
<?php endif; ?>
{{ $slot }}
<flux:menu.separator data-flux-menu-separator-bottom />
</div>