@props([
'variant' => 'primary',
'href' => null,
'type' => 'button',
])
@php
$classes = match ($variant) {
'secondary' => 'btn-secondary',
'ghost' => 'btn-ghost',
'ghost-light' => 'btn-ghost-light',
'outline' => 'btn-outline',
default => 'btn-primary',
};
@endphp
@if ($href)
merge(['class' => $classes]) }}>
{{ $slot }}
@else
@endif