DropdownMenu API

API reference docs for theDropdownMenucomponent. For examples and details on the usage of this component, visit the component demo page.

Props

PropTypeDescriptionDefault
isDisabled?booleanWhether the dropdown menu is disabled.false
children((menuState: { isMenuOpen: boolean; triggerProps: TriggerProps<React.ElementType>; }) => React.ReactNode) | React.ReactNodeAccepts either a React node or a render function. The render function provides the menu's state (isMenuOpen) and accessibility/interaction props (triggerProps) for the trigger._
popoverMatchReferenceWidth?booleanMatch the width of the popover with the reference element.false
popoverMaxHeight?numberThe max height of the dropdown panel popover.356
popoverMaxWidth?numberThe max width of the dropdown panel popover.400
popoverOffset?numberThe offset of the dropdown panel popover.4
popoverPlacement?'bottom' | 'bottom-start' | 'bottom-end'The placement of the dropdown panel popover relative to the dropdown menu trigger.'bottom-start'
strategy?'absolute' | 'fixed'The strategy used to position the floating element.'absolute'
mobilePopover?objectConfig options for responsive behavior of the dropdown menu._
mobilePopover?.mobileFriendlybooleanWhether the dropdown menu should be mobile friendlytrue
mobilePopover?.titleForMobilestringThe title of the mobile popover._
mobilePopover?.closeButtonPropsForMobile{ label: string, onClick: () => void, size?: 'large' | 'standard' | 'small' }Config options for the close button that appears on mobile._
mobilePopover?.togglePointnumberThe toggle point for the dropdown menu to switch to mobile view. Deprecated with backwards compatibility ⚠️ (The logic will be handled internally in future)768