Skip to main content

Options

You can customize the behavior with options, passed as the second argument.

OptionDefaultPossible values
disableFocusFirstItemOnClickfalseboolean
OptionExplanation
disableFocusFirstItemOnClickIf specified as true the default behavior of focusing the first menu item on click will be disabled. The menu button will instead retain focus.
useDropdownMenu(numberOfItems, {
disableFocusFirstItemOnClick: true,
});