import { Fragment } from 'react' import { Menu, Transition } from '@headlessui/react' import { ChevronDownIcon } from '@heroicons/react/20/solid' const items = [ { name: 'Save and schedule', href: '#' }, { name: 'Save and publish', href: '#' }, { name: 'Export PDF', href: '#' }, ] function classNames(...classes) { return classes.filter(Boolean).join(' ') } export default function Example() { return (
Open options
{items.map((item) => ( {({ active }) => ( {item.name} )} ))}
) }