Basic Button Group
Uniformly group buttons with consistent spacing between each.
Loading...
The group is rather easy to use, just render a list of buttons. However, there is a hard requirement that direct children must be a Button or IconButton component. Do not provide your own markup.
Loading...
Block Button Group
If you would like the buttons to expand and fill all available space, pass a block prop to the ButtonGroup.
Loading...
If you are using a component that composes around a button component, be sure to pass props from the group down correctly, like
block.
Icon buttons
Icon buttons are unique in that their shape is a circle, not a rectangle. Because of this, icon buttons do not support the block prop.
Loading...
A11y
All button groups require an accessibility label describing the group's contents.