Anatomy
Wraps around the group of buttons, defining the boundary of the component.
Represents the main call-to-action within the group.
Accompanies the primary button, often representing a less dominant action.
Used mainly in the stacked variant, indicating an action of lesser importance than both primary and secondary buttons.
Example Use Cases
Use Button Group components to provide users with options for selecting preferences, toggling settings, or submitting forms. For example, a set of buttons may represent different payment methods or subscription plans.
Incorporate Button Group components in toolbars or navigation menus to offer users quick access to common actions or navigation options. For instance, buttons in a Button Group may allow users to switch between different views or filter content.
Utilize Button Group components to enable users to filter or sort content based on specific criteria. Buttons may represent filter options such as date ranges, categories, or status filters.
Implement Button Group components as tabbed interfaces where each button corresponds to a different tab or section of content. Users can switch between tabs to view different sets of information or perform actions within a single interface.