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: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" */} 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-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" */} Dashboard Team Projects Calendar
Tom Cook
tom@example.com
Your Profile Settings Sign out
)}
) }