Description
- A split button lists a menu of other buttons that trigger actions related to the main (default) button.
- A user can select the default button or open a list of other buttons.
- It's a good way to show related buttons without taking up valuable space by showing them separately.
Component preview
No live controls configured for this component.
Anatomy
Anatomy
Size
- Available in S size, M size, and L size.
- Button and menu widths depend on content.
- The main button width should fit to content or extend to the full width of a container.
- The menu card width should fit to content. The width must be no less than the main button width.
States
The main button, menu trigger, and menu buttons all have states.
Component-specific states
Menu closed
Menu open
Variations
Popover position
Menus should open downward by default. See edge case guidance in the Button overview page
Popover below
Popover above
Popover width
To adjust the popover width you can set it to custom width or full width.
Custom width menu
Full width menu
Dos and don'ts
Do
Do
Do
Do
Do
Don't