Intro

The menu button differs visually from a regular button by featuring an expand icon, which triggers a dropdown menu (sap.ui.unified.Menu). By default, this menu is positioned below the button, but it can also be displayed above if there is not enough space.

Usage

Use the menu button if:

Do not use the menu button if:

Responsiveness

Size S

On smartphones (size S), the menu opens in a full screen dialog. The button label becomes the title of the dialog. The footer contains a Cancel button. Navigation is available with a “back” button.

Size M/L

On tablet and desktop devices (Size M/L), the menu button triggers a cascading dropdown menu.

Picture 5, Picture

Menu button, regular mode – Size M/L

Picture 4, Picture

Menu button, split mode – Size M/L

Layout

The menu button consists of a button with a label and an expand icon that indicates a menu.

The button has two different modes:

  1. Regular button mode (default): The menu button appears as a regular button. The user clicks or taps it to open a menu. In regular mode, you can use an icon in front of the label description.
  2. Split button mode: The menu button appears as a split button. The user clicks or taps the button to fire the menu’s default action, and clicking/tapping the arrow opens the menu.

The split button is separated into two areas: the label and the icon. The separator between them signals that the two areas result in different actions. The split button supports the emphasized, positive, and negative states of the regular button. The split button consolidates a set of command variations, especially when one of the commands is used more often.

In split mode, the label depends on the default action. If the default action is displayed with an icon only, all the menu items must contain icons.

Picture 6, Picture

Menu button layout in compact mode

Picture 7, Picture

Menu button layout in cozy mode

For more information about cozy and compact modes, see content density.

Types

Regular menu button

Default, regular type – the user clicks/taps the button to open the menu.

Split menu button

The user clicks/taps the button to fire the default action; clicking/tapping the arrow icon opens a menu.

Picture 8, Picture

Regular and split menu button types

Components

The menu button consists of a button with a label and/or icon and an expanding icon that indicates that a menu is available.

In split mode, the two basic elements – the label and the expanding icon – are separated.

Picture 9, Picture

Menu button components

Behavior and Interaction

On Tablets and Desktops

The menu button displays a dropdown menu (sap.ui.unified.Menu) as currently implemented.

On Smartphones

The menu opens in a full screen dialog. The button’s label becomes the title of the dialog.

Split Button

Clicking/tapping the label area triggers one of two types of behavior, which the app developer can configure individually:

Expand Icon

If the user clicks or taps the expand icon, the dropdown menu opens.

Styles

The menu button supports all the states of the button (sap.m.button): emphasized, positive, and negative.

Picture 10, Picture

All menu button styles in cozy mode

Picture 11, Picture

All menu button styles in compact mode

Resources

Implementation