If you answer yes, we store and analyse information that helps us improve the website. You can change your choice at any time at the bottom of the page. More about what we store and why.

We also store necessary information that cannot be opted out of. This makes the website work and keeps it secure.

Skip to main content

What are you looking for?

Try searching for…

Components

Dropdown

Dropdown is a generic dropdown list. It lays the foundation for building menus and lists.

Use dropdown when

  • you want to offer multiple options without taking up much space in the interface
  • the options are secondary but should still be easily accessible

Avoid dropdown when

  • an action is primary or frequently used; use a visible button instead
  • there is only one option, as a dropdown adds unnecessary complexity

Example

With icons

You can use icons together with text in the dropdown items:

With groupings

You can use headings to group related items in the dropdown:

Guidelines

Dropdown does not create a semantic menu, but provides the foundation for building one yourself. Read the "Menu and Menubar Pattern" on w3.org for more information on how to create accessible menus.

  • Use Dropdown for actions or navigation that do not need to be visible at all times
  • Keep the number of items manageable
  • Use headings to group related items
  • Avoid multiple levels of dropdowns (nested menus)
Edit this page on github.com (opens in a new tab)