Button group
A row of buttons that sit side by side, kept close together and wrapping on small screens.
Button group
Wrap buttons that sit next to each other in a ButtonGroup rather than spacing them by hand. Buttons arespacing.2 apart and wrap onto a new line when there isn't room. Lead with the primary action.
<ButtonGroup>
<Button href="/contact">Work with me</Button>
<Button href="/projects" variant="dark">See my work</Button>
</ButtonGroup>Props
| Prop | Type | Default | Notes |
|---|---|---|---|
class | string | — | Extra classes, e.g. for margins. Other <div> attributes pass through. |