File size: 1,259 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Button Group

Button group displays multiple related actions in a row to help with the display of those actions. Use to emphasize several buttons as a thematically-related set among other controls.

## Usage

```jsx
import { Button } from '@automattic/components';
import ButtonGroup from 'calypso/components/button-group';

function render() {
	return (
		<ButtonGroup>
			<Button compact>Approve</Button>
			<Button compact>Trash</Button>
			<Button compact>Spam</Button>
		</ButtonGroup>
	);
}
```

### General guidelines

- Follow the same guidelines as the [Button](./buttons) component.
- To manipulate or switch visible content, use the [SegmentedControl](/packages/components/segmented-control) component instead.
- Group together actions that have a relationship.
- Be thoughtful about how multiple horizontally placed buttons will look and work on small screens.

## Related components

- See the [Button](./buttons) component for more detail.
- Use the [SegmentedControl](/packages/components/segmented-control) component to switch content.
- To use a button with a secondary popover menu, use the [SplitButton](./split-button) component.
- To display a loading spinner with a button, use the [SpinnerButton](../design/spinner-button) component.