@php $props = ['gap', 'position']; @endphp @php $gap = $attributes->get('gap', 0); $position = $attributes->get('position', 'start'); $isGrowing = $attributes->has('grow'); $attributes = $attributes->except(['gap', 'position']); $defaultClass = 'Stack flex flex-col space-y-' . $gap . ' items-' . $position; @endphp
twMerge($defaultClass . ($isGrowing ? ' items-stretch' : '')) }}> {{ $slot }}