The Menu component shows a list of actions that user can take.
Evergreen exports multiple component to help create menus. All components are accessible through the Menu component.
The Menu component is used to help with focus management.
disabled items.Home key (fn + arrow left) will go to the first item.End key (fn + arrow right) will go to the last item.All examples below will show the Menu inside of a Popover. It is important to understand the Menu component by itself does not manage a dropdown interaction.
Menu items support a onSelect handler that is triggered on click and enter + space key down.
The onSelect handlers are omitted for brevity.
The onSelect handlers are omitted for brevity.
The Menu.OptionsGroup is useful inside of table headers to help with sorting and filtering options.
The Menu by itself offers focus management to elements inside of the component that
either have [role="menuitemradio"] or [role="menuitem"].
The focus styles are currently not working in the docs, sorry for the inconvenience!