DropdownMenuTrigger API
API reference docs for theDropdownMenuTrigger
component. For examples and details on the usage of this component, visit the component demo page.
Props
Prop | Type | Description | Default |
---|---|---|---|
variant? | 'accentPrimary' | 'accentSecondary'| 'criticalPrimary'| 'criticalTertiary'| 'neutralPrimary'| 'neutralSecondary'| 'neutralSecondaryIntense'| 'neutralTertiary' | Variant of the button. | 'neutralSecondary' |
size? | 'large' | 'standard' | 'small' | Size of the button. | 'standard' |
iconStart? | Icon | The icon to display before the buttons children. | _ |
iconEnd? | Icon | The icon to display after the buttons children. | _ |
loadingLabel? | string | Text to read out to assistive technologies when button is loading. | _ |
isDisabled? | boolean | If true, the button is disabled. | false |
isLoading? | boolean | If true ,the button will display a loading indicator. | false |
isPressed? | boolean | If true, the button will be visually styled as pressed and the aria-pressed attribute will be set accordingly. | _ |
children? | React.ReactNode | The content to be displayed inside the button. | _ |
form? | string | Specifies the form element the button is associated with. | _ |
onBlur? | function | Function to call when the button loses focus. | _ |
onFocus? | function | Function to call when the button receives focus. | _ |
onKeyDown? | function | Function to call when a key is pressed while the button is focused. | _ |