Menu
Last Updated on Dec 15, 2022
A menu displays a list of options for a user to decide between. They can be single or multi-select and can include trees.
Component Variants
Design Principles
- Menus can be triggered by clicking on an action icon, button, or select. Most menus are modals, but menus can be used inline too.
- When triggering using a button, the button must have an arrow icon to the right. When triggering using an action icon, use a carat or the menu icon.
- Menus dismiss as soon as the user clicks away on anything not contained inside the menu or if the user clicks the button/action-icon/select again.
- There are menu item options for Select All, Clear, Count, Search, Loading, Heading, Subheading, and Divider.
- If there is an error loading results, use the compact version of our empty state to show the error.
- Menus items can contain switches to make binary choices. A menu with switches is not selectable. The switches are used to turn items on and off, like table columns in the adjustment bar.
- Guidance on multi-column and tree menus is coming soon.