SelectMenuTrigger API

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

Props

The SelectMenuTrigger component is a customizable trigger for a select menu, built using the Button component. It inherits some Button props and adds few more additional functionalities.

PropTypeDescriptionDefault
children?ReactNodeThe content to be displayed inside the button._
form?stringSpecifies the form element the button is associated with._
iconEnd?ReactNodeThe icon to display after the button children._
iconStart?ReactNodeThe icon to display before the button children._
isLoading?booleanIf true, the button will display a loading indicator.false
isPressed?booleanIf true, the button will be visually styled as pressed and the aria-pressed attribute will be set accordingly.false
loadingLabel?stringText to read out to assistive technologies when button is loading._
onBlur?functionFunction to call when the button loses focus._
onFocus?functionFunction to invoke when the button receives focus._
onKeyDown?functionFunction to invoke when a key is pressed while the button is focused._
placeholder?stringDisplays a placeholder text when selectedOption is not provided._