/* 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: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" */} 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-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
)}
) }