sackey e839d40a99
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
Initial commit
2025-07-30 17:15:50 +00:00

23 lines
620 B
PHP

@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>