2024-05-13 18:55:34 -04:00
|
|
|
@props(['active'])
|
|
|
|
|
|
|
|
@php
|
2024-05-24 17:06:02 -04:00
|
|
|
$classes = ($active ?? false)
|
2024-06-22 21:55:20 -04:00
|
|
|
? 'rounded-md px-3 py-2 text-sm font-medium text-black dark:text-white bg-gray-100 dark:bg-gray-900 transition duration-150 ease-in-out'
|
|
|
|
: 'rounded-md px-3 py-2 text-sm font-medium text-gray-700 dark:text-gray-200 hover:bg-gray-300 dark:hover:bg-gray-700 hover:text-black dark:hover:text-white transition duration-150 ease-in-out';
|
2024-05-13 18:55:34 -04:00
|
|
|
@endphp
|
|
|
|
|
|
|
|
<a {{ $attributes->merge(['class' => $classes]) }}>
|
|
|
|
{{ $slot }}
|
|
|
|
</a>
|