SelectMenu API
API reference docs for theSelectMenu
component. For examples and details on the usage of this component, visit the component demo page.
Props
Props | Type | Description | Default |
---|---|---|---|
|
| 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. | _ |
|
| Props for the close button that appears on mobile. | _ |
|
| Whether the select menu should be mobile friendly. |
|
|
| The title of the Modal that appears on mobile instead of Popover. | _ |
|
| The toggle point for the select menu to switch to mobile view. Deprecated with backwards compatibility ⚠️ (The logic will be handled internally in future) |
|
|
| Match the width of the popover with the reference element. |
|
|
| The max height of the select menu popover. |
|
|
| The max width of the select menu popover. |
|
|
| The offset of the select menu popover. |
|
|
| The placement of the select menu popover in relation to the trigger. |
|
|
| The currently selected option. This prop is deprecated and will be removed in future versions. A much better API will be used similar to | _ |
|
| The strategy used to position the floating element. |
|