DropdownMenu API
API reference docs for theDropdownMenu
component. For examples and details on the usage of this component, visit the component demo page.
Props
Prop | Type | Description | Default |
---|---|---|---|
|
| Whether the dropdown menu is disabled. |
|
|
| Accepts 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. | _ |
|
| Match the width of the popover with the reference element. |
|
|
| The max height of the dropdown panel popover. |
|
|
| The max width of the dropdown panel popover. |
|
|
| The offset of the dropdown panel popover. |
|
|
| The placement of the dropdown panel popover relative to the dropdown menu trigger. |
|
|
| The strategy used to position the floating element. |
|
|
| Config options for responsive behavior of the dropdown menu. | _ |
|
| Whether the dropdown menu should be mobile friendly |
|
|
| The title of the mobile popover. | _ |
|
| Config options for the close button that appears on mobile. | _ |
|
| The toggle point for the dropdown menu to switch to mobile view. Deprecated with backwards compatibility ⚠️ (The logic will be handled internally in future) |
|