Button groups are a collection of buttons. This component is used in our questions view, and is frequently used in conjunction with other form elements such as search fields and sorting dropdowns. If the content you’re interacting with is a simple paring down or filter of the current view, it’s appropriate to use the
.s-btn-group component. Add the class
.is-selected to show the currently-selected button.
||Base button group style.|
||When required to wrap one of our buttons within a button group in a form, apply this class to the form to maintain the intended visuals.|
Counts are used to display a numerical count inside a button group. This is good for large data sets where it’s helpful to quickly know how many items are behind each filter.