@php // Map the passed `position` to flex alignment $pos = $position ?? 'top-right'; $containerAlign = match ($pos) { 'top-right' => 'items-start justify-end', 'top-left' => 'items-start justify-start', 'bottom-right' => 'items-end justify-end', 'bottom-left' => 'items-end justify-start', default => 'items-start justify-end', }; @endphp