@props([ 'href' => null, 'type' => 'button', 'label' => null, ]) @php $tag = $href ? 'a' : 'button'; $ariaLabel = $label ?? trim(preg_replace('/\s+/', ' ', strip_tags((string) $slot))); @endphp <{{ $tag }} @if ($href) href="{{ $href }}" @endif @if ($tag === 'button') type="{{ $type }}" @endif aria-label="{{ $ariaLabel }}" title="{{ $ariaLabel }}" {{ $attributes->class(['btn-fab h-10 w-10 lg:hidden']) }} > <{{ $tag }} @if ($href) href="{{ $href }}" @endif @if ($tag === 'button') type="{{ $type }}" @endif {{ $attributes->class(['btn-primary hidden lg:inline-flex']) }} > {{ $slot }}