Skip to content
+

Menu

The Dropdown Menu components provide end users with a list of options on temporary surfaces.

useDropdown API

Import

import { useDropdown } from '@mui/base/useDropdown';
// or
import { useDropdown } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

defaultOpen

onOpenChange

open

Return value

contextValue

open


useMenu API

Import

import { useMenu } from '@mui/base/useMenu';
// or
import { useMenu } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

disabledItemsFocusable

disableListWrap

id

listboxRef

onItemsChange

Return value

contextValue

dispatch

getListboxProps

highlightedValue

listboxRef

menuItems

open

triggerElement


useMenuButton API

Import

import { useMenuButton } from '@mui/base/useMenuButton';
// or
import { useMenuButton } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

disabled

focusableWhenDisabled

rootRef

Return value

active

getRootProps

open

rootRef


useMenuItem API

Import

import { useMenuItem } from '@mui/base/useMenuItem';
// or
import { useMenuItem } from '@mui/base';
Learn about the difference by reading this guide on minimizing bundle size.

Parameters

rootRefRequired

disabled

id

label

onClick

Return value

disabled

focusVisible

getRootProps

highlighted

index

rootRef

totalItemCount