@props(['href' => null, 'variant' => 'primary', 'size' => 'md', 'type' => 'button'])
@php($tag = $href ? 'a' : 'button')
<{{ $tag }} @if($href) href="{{ $href }}" @else type="{{ $type }}" @endif {{ $attributes->class(['button',"button-$variant","button-$size"]) }}><span>{{ $slot }}</span><span class="button-arrow" aria-hidden="true">→</span></{{ $tag }}>
