@props(['icon' => null]) @php $known = ['home', 'utensils', 'laptop', 'leaf', 'lamp', 'sparkles', 'box', 'bag', 'star', 'folder', 'layers']; $hasSize = preg_match('/\b(size|w|h)-/', (string) $attributes->get('class', '')) === 1; $cls = ($hasSize ? '' : 'size-3.5 ').'text-bamboo-600 shrink-0'; @endphp @if($icon && in_array($icon, $known, true)) merge(['class' => $cls]) }}/> @elseif($icon) merge(['class' => 'text-xs leading-none shrink-0']) }}>{{ $icon }} @endif