SelectMenu API

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

Props

PropsTypeDescriptionDefault
children((menuState: { isMenuOpen: boolean; triggerProps: TriggerProps }) => ReactNode) | 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._
closeButtonPropsForMobile?{ label: string, onClick: () => void, size?: IconButtonProps['size'] }Props for the close button that appears on mobile._
mobileFriendly?booleanWhether the select menu should be mobile friendly.true
titleForMobile?stringThe title of the Modal that appears on mobile instead of Popover._
togglePoint?numberThe toggle point for the select menu to switch to mobile view. Deprecated with backwards compatibility ⚠️ (The logic will be handled internally in future)768
popoverMatchReferenceWidth?booleanMatch the width of the popover with the reference element.false
popoverMaxHeight?numberThe max height of the select menu popover.356
popoverMaxWidth?numberThe max width of the select menu popover.400
popoverOffset?numberThe offset of the select menu popover.4
popoverPlacement?'bottom' | 'bottom-start' | 'bottom-end'The placement of the select menu popover in relation to the trigger.'bottom-start'
selectedOption?objectThe currently selected option. This prop is deprecated and will be removed in future versions. A much better API will be used similar to FilterMenu._
strategy?'absolute' | 'fixed'The strategy used to position the floating element.'absolute'