@props([ 'href' => null, 'type' => 'button', 'variant' => 'primary', ]) @php // Paleta por variante $palette = [ 'main' => 'btn-main', 'primary' => 'btn-primary', 'secondary' => 'btn-secondary', 'optional' => 'btn-optional', 'cancel' => 'btn-cancel', 'add' => 'btn-add', 'remove' => 'btn-remove' ][$variant] ?? ''; @endphp @if ($href) merge(['class' => "btn parrafo $palette"]) }}> {{ $slot }} @else @endif