Actions
Button group
Buttons joined into one control, with shared edges, for actions that belong together.
Actions
Buttons joined into one control, with shared edges, for actions that belong together.
Change the props on the right. The group and its code follow.
import { Button } from 'omuk-ui/button';
import { ButtonGroup } from 'omuk-ui/button-group';
<ButtonGroup aria-label="Report actions">
<Button variant="outline">Copy</Button>
<Button variant="outline">Download</Button>
<Button variant="outline">Share</Button>
</ButtonGroup>Outline buttons side by side share their edges: each one after the first moves back by the edge’s width, and only the outer corners stay round.
The main action and a menu of the other ways to do it. A separator draws the line between two filled buttons.
ButtonGroupText is a fixed part, such as a prefix or a unit. An input in the group takes the width that is left.
ButtonGroup is the row; ButtonGroupText and ButtonGroupSeparator are parts that go in it. Each also takes the props of its element.