@props(['active'])

@php
$classes = ($active ?? false)
            ? 'inline-flex items-center border-b-2 border-blue-500 px-1 pt-1 text-sm font-medium leading-5 text-slate-950 transition duration-150 ease-in-out focus:border-blue-700 focus:outline-none dark:text-white dark:focus:border-blue-300'
            : 'inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium leading-5 text-slate-500 transition duration-150 ease-in-out hover:border-blue-200 hover:text-blue-700 focus:border-blue-300 focus:text-blue-700 focus:outline-none dark:text-slate-400 dark:hover:border-blue-800 dark:hover:text-blue-300 dark:focus:border-blue-700 dark:focus:text-blue-300';
@endphp

<a {{ $attributes->merge(['class' => $classes]) }}>
    {{ $slot }}
</a>
