-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Split buttons
Split buttons open a menu to give people more options related to an action
- Use to show an action with a menu of related actions
- Same size range as buttons and icon buttons: XS, S, M, L, XL
Specs: https://m3.material.io/components/split-button/specs
Types
| Type | Original M3 | M3 Expressive |
|---|---|---|
| Split button | -- | Available |
Configurations
- Color configurations: Elevated, filled, tonal, outlined
- Size configurations: XS, S, M, L, XL
| Category | Configuration | Original M3 | M3 Expressive |
|---|---|---|---|
| Size | XS, S, M, L, XL | -- | Available |
| Color | Elevated, filled, tonal, outlined | -- | Available |
Tokens & specs
Use the table's menu to select a token set. Split button token sets are organized by size. Learn about design tokens
Anatomy
- Leading button
- Icon
- Label text
- Trailing button
The leading button in split buttons can have an icon, label text, or both. The trailing button should always have a menu icon.
- Label + icon
- Label
- Icon
Color
Color values are implemented through design tokens. Design tokens are the building blocks of all UI elements. The same tokens are used in designs, tools, and code. More on tokens.
Split buttons use the same color schemes as standard buttons. More on buttons. However, unlike toggle buttons, the split button color doesn’t change when selected—only a state layer is applied.
Split buttons use the same colors and state layers as buttons, shown in the following token module. Go to buttons for more details.
A: Unselected, B: Selected trailing icon
- Elevated
- Filled
- Tonal
- Outlined
States
States are visual representations used to communicate the status of a component or an interactive element. More on states
Split button states use the same colors and state layers as buttons and icon buttons. Go to those specs for details.
Leading button shape
The inner corners change shape for hovered, focused, and pressed states.
- Enabled
- Disabled
- Hovered
- Focused
- Pressed, pressed with focus
Trailing button shape
The inner corners change shape for hovered, focused, and pressed states, and the icon becomes centered when selected.
- Enabled
- Disabled
- Hovered
- Focused
- Pressed, pressed with focus
- Selected, selected with focus
Measurements
Text and icons are optically centered when the buttons are asymmetrical. They’re centered normally when symmetrical.
Menu icon offset when unselected:
- XS: -1dp from center
- S: -1dp from center
- M: -2dp from center
- L: -3dp from center
- XL: -6dp from center
The inner corner radius changes depending on button sizing. The space should always be 2dp.
- Extra small: 4dp
- Small: 4dp
- Medium: 4dp
- Large: 8dp
- Extra large: 12dp