@props([ 'variant' => 'primary', 'href' => null, 'type' => 'button', ]) @php $class = 'vpm-btn vpm-btn--' . $variant . ' ' . ($attributes->get('class') ?? ''); @endphp @if ($href) merge(['class' => $class]) }}>{{ $slot }} @else @endif