Intro

Buttons allow users to trigger an action – either by clicking on or tapping the button, or by pressing certain keys such as Enter or the space bar.

Usage

Standard Buttons

Use buttons for typical actions, such as:

The different button styles are designed to give the appropriate feedback to users. Don’t use them for decoration purposes.

Standard buttons in a toolbar

Standard buttons in a toolbar

Standard buttons in the footer toolbar

Standard buttons in the footer toolbar

Segmented Buttons

If you want the user to select one option from a small group, offer a segmented button in the toolbar or footer toolbar.

For example:

Segmented button in a toolbar

Segmented button in a toolbar

Segmented button in the footer toolbar

Segmented button in the footer toolbar

Toggle Buttons

Use toggle buttons in a toolbar or footer toolbar to activate or deactivate an object or element. You can also use toggle buttons to switch between different states.

Responsiveness

The buttons themselves are not responsive. The button text and position depend on the settings for the parent container. In a responsive container or control, the button text may become truncated, or the button may move to another position.

All three button types support the cozy and compact form factors. The compact form factor is used for apps running on a mouse and keyboard-operated device. For more information, check out the article on content density.

Types

Standard Button

Standard button

Standard button

Clicking or tapping a standard button triggers an action.

Toggle Button

Toggle button

Toggle button

Clicking or tapping a toggle button changes its state to “pressed”. The button returns to its initial state when the user clicks or taps it again. The toggle button is comparable to a checkbox control.

Segmented Button

Segmented button

Segmented button

A segmented button shows a group of options. When the user clicks or taps one of the options, it remains in a pressed state. The segmented button is comparable to a radio button group control.

Components

A button can contain an icon or a text. For more information about icons, check out the article on iconography.

Behavior and Interaction

Enabled, Hover, and Pressed

Buttons can be enabled or disabled. Enabled buttons can be clicked or tapped. They also have “hover” and “pressed” states that give feedback to the user.

Standard button behavior

Standard button behavior

Toggle button behavior

Toggle button behavior

Segmented button behavior

Segmented button behavior

Disabled

Disabled buttons are shown as inactive and cannot be clicked or tapped.

Disabled standard button

Disabled standard button

Disabled toggle button

Disabled toggle button

Disabled segmented button

Disabled segmented button

Styles

Standard Buttons

The appearance of a button can change depending on where it’s used (for example, in a toolbar, footer toolbar, popup, or dialog box).

Default

Default

Back

Back

Transparent

Transparent

Positive (property: type = accept)

Positive (property: type = accept)

Negative (property: type = reject)

Negative (property: type = reject)

Emphasized

Emphasized

Up

Up

Unstyled (not recommended). We advise against using unstyled buttons since you will need to add custom CSS. There are no default styles.

Unstyled (not recommended). We advise against using unstyled buttons since you will need to add custom CSS. There are no default styles.

Toggle Buttons

Default

Default

Transparent

Transparent

Segmented Buttons

No special styles apply to segmented buttons. As a result, they look almost the same as the default style for standard buttons.

Guidelines

Exceptions

Segmented Button

By default, the control for segmented buttons calculates the button width and applies it to all buttons within the group. You can change this by setting the width for individual buttons.

Resources

Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.

Elements and Controls

  • No links

Implementation

[internal_only]

[/internal_only]
[external_only]

  • No links

[/external_only]

Visual Design