Skip to main content

Button Group

Loading...
import { Button, ButtonGroup } from "@nudge-coach/ui";

Overview

Collects a group of buttons and creates standardized spacing between each.


Props

children

React.ReactNode Inject button components to be grouped.


row

A boolean that displays the group of buttons inline.

Loading...
<ButtonGroup row>
<Button primary /> <Button />
</ButtonGroup>

margin

A boolean that adds standardized spacing around the ButtonGroup.

Loading...
<ButtonGroup row>
<Button primary /> <Button />
</ButtonGroup>