Skip to contentWolf-Rayet

Button group

A button group shows related actions together.

When to use

  • Two or three actions belonging to the same thing, such as the footer of a dialog.
  • Anywhere the actions should read as one set rather than as separate controls.

When not to use

  • One action, which needs no group.
  • Actions belonging to different things, which grouping would wrongly imply are related.
  • More than about three, which becomes a menu.

Guidance

Do

Put the primary action last and name the group. The order reads from least to most committing.

Don't

Do not lead with the primary and do not colour a cancel as danger. Discard is not destructive and should not look like it.

Intensity

What each of this component's grounds spends, measured against the ladder in both themes.

AppearanceGroundLightDark
buttonneutral0.042Ambient0.066Substrate
buttondisabled0.042Ambient0.129Ambient
button--dangerdanger-bold0.443Marked0.617Marked
button--defaultneutral0.042Ambient0.066Substrate
button--discoverydiscovery-bold0.444Marked0.624Marked
button--primarybrand-bold0.460Marked0.598Marked
button--selectedselected0.042Ambient0.062Substrate
button--subtleneutral-subtle0.000Substrate0.000Substrate
button--warningwarning-bold0.448Marked0.601Marked

Substrate, Ambient and Marked are measured. Directed depends on what else is in the region, and Demanded is declared and rationed, so neither is a property this component carries by itself. See intensity.