Action menu
Use the action menu component to display a list of actions or selections that expand through a trigger button.
import {ActionMenu} from '@primer/react-brand'
| name | type | default | required | description |
|---|---|---|---|---|
disabled | boolean | false | false | Controls the ActionMenu active/inactive state |
open | boolean | false | false | Determines whether the ActionMenu is open by default |
onSelect | (newValue: string) => void | false | Callback that is called when an item is selected | |
selectionVariant | 'single''none' | 'none' | false | The selection variant of the ActionMenu |
menuAlignment | 'start''end' | 'start' | Horizontal alignment of the menu relative to the bottom of the button |
| name | type | default | required | description |
|---|---|---|---|---|
className | string | Sets a custom class on the element | ||
children | ReactElement | |||
id | string | Sets a custom id |
| name | type | default | required | description |
|---|---|---|---|---|
aria-label | string | true | Required for describing the relationship between button and menu | |
className | string | Sets a custom class on the element | ||
children | ReactElement | |||
id | string | Sets a custom id |
| name | type | default | required | description |
|---|---|---|---|---|
className | string | Sets a custom class on the element | ||
children | ReactElement | |||
disabled | boolean | false | false | Allows control over an individual items active/inactive state |
id | string | Sets a custom id | ||
selected | boolean | Indicates the item is selected in single selection mode | ||
value | string | The underlying value passed to the selection handler |