Skip Navigation
Magma

Dropdown

Dropdowns (also referred to as Dropdown Menus) display a list of options that a user can select from within a contextual overlay.

Usage


Anatomy

Text List

Dropdown menus typically contain a list of text-only menu items.

There is 8px of space above the first item in the dropdown, and below the last item. There is also 4px of space above and below the divider.

  1. Container
  2. Text Label
  3. Divider

Text and Icon List

Dropdown menu items may also use an icon on the left side to help clarify the meaning of the menu choice.

  1. Container
  2. Icon
  3. Text label
  4. Divider

Selection State List

Dropdown menus may use a selection state by placing a checkmark next to the currently active choice.

  1. Container
  2. Selected item indicator
  3. Text label

Grouping

Some dropdowns benefit from organizing the choices or options into groups, and then labelling those groups.

Height

Dropdowns have a default max-height of 250px and will scroll if necessary. This helps prevent extremely long lists of choices from stretching beyond the top and bottom boundaries of the browser window. 250px is enough to show an average of 6 single line menu choices at once. The max-height can be easily changed if a different value would improve the experience.

Correct

If the dropdown isn't tall enough to show all content, it will automatically scroll.

Caution

Allowing a dropdown to get really tall could make it difficult to use.


Button Types

Standard Dropdown Button

The standard dropdown button is the most common element used to trigger a dropdown container.

Example of single dropdown button.

Split Dropdown Button

Split buttons combine a single action button with a menu of related choices into a single component.

Example of split-dropdown button.

Custom Button

Other button variants may be used as a trigger for a dropdown menu. Caution should be used because depending on the label or icon within the button, or where it's used, showing a dropdown menu could be confusing.

Example of an icon button used for a series of options related to creating or adding something.

Example of a "more options" dropdown menu.

On this page

Deploys by Netlify