← catalogo / navigation/tabs
TW-NA-TA-08
Tailwind Plus
tailwind/application-ui/navigation/tabs/08-tabs-with-underline-and-badges
<div>
<div class="grid grid-cols-1 sm:hidden">
<!-- Use an "onChange" listener to redirect the user to the selected tab URL. -->
<select aria-label="Select a tab" class="col-start-1 row-start-1 w-full appearance-none rounded-md bg-white py-2 pr-8 pl-3 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 dark:bg-white/5 dark:text-gray-100 dark:outline-white/10 dark:*:bg-gray-800 dark:focus:outline-indigo-500">
<option>Applied</option>
<option>Phone Screening</option>
<option selected>Interview</option>
<option>Offer</option>
<option>Disqualified</option>
</select>
<svg viewBox="0 0 16 16" fill="currentColor" data-slot="icon" aria-hidden="true" class="pointer-events-none col-start-1 row-start-1 mr-2 size-5 self-center justify-self-end fill-gray-500 dark:fill-gray-400">
<path d="M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" fill-rule="evenodd" />
</svg>
</div>
<div class="hidden sm:block">
<div class="border-b border-gray-200 dark:border-white/10">
<nav aria-label="Tabs" class="-mb-px flex space-x-8">
<!-- Current: "border-indigo-500 dark:border-indigo-400 text-indigo-600 dark:text-indigo-400", Default: "border-transparent text-gray-500 dark:text-gray-400 hover:border-gray-200 dark:hover:border-white/20 hover:text-gray-700 dark:hover:text-white" -->
<a href="#" class="flex border-b-2 border-transparent px-1 py-4 text-sm font-medium whitespace-nowrap text-gray-500 hover:border-gray-200 hover:text-gray-700 dark:text-gray-400 dark:hover:border-white/20 dark:hover:text-white">
Applied
<!-- Current: "bg-indigo-100 dark:bg-indigo-500/20 text-indigo-600 dark:text-indigo-400", Default: "bg-gray-100 dark:bg-white/10 text-gray-900 dark:text-gray-300" -->
<span class="ml-3 hidden rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-900 md:inline-block dark:bg-white/10 dark:text-gray-300">52</span>
</a>
<a href="#" class="flex border-b-2 border-transparent px-1 py-4 text-sm font-medium whitespace-nowrap text-gray-500 hover:border-gray-200 hover:text-gray-700 dark:text-gray-400 dark:hover:border-white/20 dark:hover:text-white">
Phone Screening
<span class="ml-3 hidden rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-900 md:inline-block dark:bg-white/10 dark:text-gray-300">6</span>
</a>
<a href="#" aria-current="page" class="flex border-b-2 border-indigo-500 px-1 py-4 text-sm font-medium whitespace-nowrap text-indigo-600 dark:border-indigo-400 dark:text-indigo-400">
Interview
<span class="ml-3 hidden rounded-full bg-indigo-100 px-2.5 py-0.5 text-xs font-medium text-indigo-600 md:inline-block dark:bg-indigo-500/20 dark:text-indigo-400">4</span>
</a>
<a href="#" class="flex border-b-2 border-transparent px-1 py-4 text-sm font-medium whitespace-nowrap text-gray-500 hover:border-gray-200 hover:text-gray-700 dark:text-gray-400 dark:hover:border-white/20 dark:hover:text-white"> Offer </a>
<a href="#" class="flex border-b-2 border-transparent px-1 py-4 text-sm font-medium whitespace-nowrap text-gray-500 hover:border-gray-200 hover:text-gray-700 dark:text-gray-400 dark:hover:border-white/20 dark:hover:text-white"> Disqualified </a>
</nav>
</div>
</div>
</div>