/* This example requires some changes to your config: ``` // tailwind.config.js module.exports = { // ... plugins: [ // ... require('@tailwindcss/forms'), ], } ``` */ import { Fragment } from 'react' import { Disclosure, Menu, Transition } from '@headlessui/react' import { MagnifyingGlassIcon } from '@heroicons/react/20/solid' import { Bars3Icon, BellIcon, XMarkIcon } from '@heroicons/react/24/outline' function classNames(...classes) { return classes.filter(Boolean).join(' ') } export default function Example() { return ( {({ open }) => ( <>
Your Company Your Company
{/* Current: "border-indigo-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" */} Dashboard Team Projects Calendar
{/* Mobile menu button */} Open main menu {open ? (
{/* Profile dropdown */}
Open user menu
{({ active }) => ( Your Profile )} {({ active }) => ( Settings )} {({ active }) => ( Sign out )}
{/* Current: "bg-indigo-50 border-indigo-500 text-indigo-700", Default: "border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800" */} Dashboard Team Projects Calendar
Tom Cook
tom@example.com
Your Profile Settings Sign out
)}
) }