Button Group
Component
Display multiple related actions stacked or in a horizontal row to help with arrangement and spacing.
Related components: ButtonComponent
<GoAButtonGroup alignment="center">
<GoAButton type="primary" onClick={onClick}>
Button
</GoAButton>
<GoAButton type="secondary" onClick={onClick}>
Button
</GoAButton>
<GoAButton type="tertiary" onClick={onClick}>
Button
</GoAButton>
</GoAButtonGroup>Properties
alignmentstart | end | centerPositions the button group in the page layout.
gaprelaxed | compactSets the spacing between buttons in the button group. Defaults to
relaxed.testIdstringSets the data-testid attribute. Used with ByTestId queries in tests.
mt,mr,mb,mlnone | 3xs | 2xs | xs | s | m | l | xl | 2xl | 3xl | 4xlApply margin to the top, right, bottom, and/or left of the component.
Book time in drop in hours