Files
Nexora/resources/views/components/tab-button.blade.php

11 lines
351 B
PHP
Raw Normal View History

2025-04-30 20:56:28 +02:00
@props(['active' => false])
<button
{{ $attributes->merge([
'class' => $active
? 'border-b-2 border-blue-500 text-blue-600 px-4 py-2 text-sm font-medium'
: 'text-gray-500 hover:text-gray-700 hover:border-gray-300 px-4 py-2 text-sm font-medium border-b-2 border-transparent'
]) }}
>
{{ $slot }}
</button>