import { Fragment } from 'react' import { Disclosure, Menu, Transition } from '@headlessui/react' 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
{/* Profile dropdown */}
Open user menu
{({ active }) => ( Your Profile )} {({ active }) => ( Settings )} {({ active }) => ( Sign out )}
{/* Mobile menu button */} Open main menu {open ? (
{/* Current: "bg-indigo-50 border-indigo-500 text-indigo-700", Default: "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700" */} Dashboard Team Projects Calendar
Tom Cook
tom@example.com
Your Profile Settings Sign out
)}
) }