ButtonGroup

A button group is meant to wrap around two or more buttons, passed as children. The button group will stack these buttons along the inline axis, and add the necessary spacing between them.


Example

buttongroup

Best practices

  • Only use buttons that follow the best practices outlined in the Button component
  • Group together calls to action that have a relationship
  • Too many calls to action can cause customers to be unsure of what to do next
  • Be thoughtful about how multiple buttons will look and work on small screens
  • Button: Buttons are used for actions, such as “Add”, “Continue”, or “Pay now”, or “Save”.
  • Link: Link makes text interactive so customers can perform an action, such as navigating to another location.