@props([ 'href' => null, 'as' => null, ]) @php $tag = $as ?? ($href ? 'a' : 'button'); @endphp <{{ $tag }} @if ($href) href="{{ $href }}" @endif @if ($tag === 'button' && ! $attributes->has('type')) type="button" @endif {{ $attributes->except(['href', 'as'])->class([ 'flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-left text-sm text-stone-700 transition-colors hover:bg-stone-100 dark:text-stone-300 dark:hover:bg-stone-800', ]) }} >{{ $slot }}