@props([ 'type' => 'button', 'variant' => 'primary', // 'primary', 'outline', 'icon', 'link' 'size' => 'md', // 'sm', 'md', 'lg' 'href' => null, ]) @if($href) class([ 'btn-theme-outline' => $variant === 'outline', 'btn-theme-icon' => $variant === 'icon', 'btn-link' => $variant === 'link', 'button' => !in_array($variant, ['outline', 'icon', 'link'], true), 'btn-sm' => $size === 'sm', 'btn-lg' => $size === 'lg', ]) }}> @if($variant === 'primary') {{ $slot }} @else {{ $slot }} @endif @else @endif