@props(['variant' => 'primary', 'size' => 'md', 'href' => null, 'type' => 'button', 'loading' => false]) @php $variants = ['primary' => 'ui-button-primary', 'secondary' => 'ui-button-secondary', 'danger' => 'ui-button-danger', 'warning' => 'ui-button-warning', 'ghost' => 'ui-button-ghost']; $sizes = ['sm' => 'ui-button-sm', 'md' => '', 'lg' => 'ui-button-lg']; $classes = 'ui-button '.($variants[$variant] ?? $variants['primary']).' '.($sizes[$size] ?? ''); @endphp @if($href) merge(['class' => $classes]) }}>{{ $slot }} @else @endif