DropdownMenuTrigger API

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

Props

PropTypeDescriptionDefault
variant?'accentPrimary' | 'accentSecondary'| 'criticalPrimary'| 'criticalTertiary'| 'neutralPrimary'| 'neutralSecondary'| 'neutralSecondaryIntense'| 'neutralTertiary'Variant of the button.'neutralSecondary'
size?'large' | 'standard' | 'small'Size of the button.'standard'
iconStart?IconThe icon to display before the buttons children._
iconEnd?IconThe icon to display after the buttons children._
loadingLabel?stringText to read out to assistive technologies when button is loading._
isDisabled?booleanIf true, the button is disabled.false
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._
children?React.ReactNodeThe content to be displayed inside the button._
form?stringSpecifies the form element the button is associated with._
onBlur?functionFunction to call when the button loses focus._
onFocus?functionFunction to call when the button receives focus._
onKeyDown?functionFunction to call when a key is pressed while the button is focused._