@props([ 'icon' => null, 'variant' => 'default', 'href' => null, ]) @php $textColor = match($variant) { 'danger' => 'text-red-600', 'warning' => 'text-yellow-600', 'success' => 'text-green-600', default => 'text-primary', }; @endphp @if($href) @if($icon) @endif {{ $slot }} @else @endif