Skip to content
Vy logo
  • Spor
  • Resources
Components

Button Group

A ButtonGroup gathers multiple buttons at once, providing them with the correct spacing depending on the context.

GitHub

Code examples

<ButtonGroup>
  <Button variant="primary">One button</Button>
  <Button variant="secondary">Another button</Button>
</ButtonGroup>

Guidelines

Button Group are used when buttons are used together to give the user alternative choices. Button Group are aligned horizontally or vertically.

Code

<ButtonGroup />

import { ButtonGroup } from "@vygruppen/spor-react";

Utility for grouping several buttons.

Props

Name
Type
Required?
Description
attachedbooleanAttaches buttons in the middle, making them look more pill-shaped
disabledbooleanDisables all buttons
growbooleanMake the children grow to fill the available space.