Skip to main content

Button groups

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 and the aria-current attribute with the appropriate value to show the currently selected button.

This component has been removed in Stacks v3. If using Stacks v2, please refer to the v2 documentation for more information.
How’d we do?
Anonymously upvote, downvote, or send additional feedback below.
Deploys by Netlify