SplitButton

The action the moment calls for is the button; the others are in the caret's menu. The caller picks the default and the button never changes what a click does without its label saying so.

The default action

primary names the default action; size matches the buttons beside it. The caller moves the default as the work moves on; the label follows.

Disabled actions

A disabled action's hint says why, in the app tooltip; the menu's arrow keys skip it.

Keyboard

The caret's menu works from the keyboard alone.

  • Enter, Space or ↓ on the caret opens the menu on its first enabled item; ↑ on its last
  • ↓ ↑ move between the enabled items, wrapping
  • Home End go to the first and last
  • Esc closes it and returns to the caret; Tab closes it

Examples

Two sizes

Last run: nothing yet

Moving the default

Pick a default; the button's label follows.

Disabled actions with hints

Open the menu and hover a disabled action for why.