ButtonGroup

A container component for grouping related buttons together with connected styling.

Import
import { Button, ButtonGroup } from "@sugarcoat/ui-nxt";
Usage
<ButtonGroup>
<Button>Left</Button>
<Button>Center</Button>
<Button>Right</Button>
</ButtonGroup>

Examples#

Basic Button Group#

Default Button Group

Two Buttons#

Two Button Group

With Different Button Variants#

Primary Buttons
Outline Buttons
Ghost Buttons

Button Sizes#

Small Buttons
Large Buttons

Practical Examples#

Text Alignment
Pagination
View Toggle

Props#

PropTypeDefaultDescription
childrenReactNode-Button components to group together
classNamestring-Additional CSS classes to apply
Customize Theme
Build your own sugarcoat/ui theme
PresetLime / Violet / Slate
Brand ColorLime
Accent ColorViolet
Gray ScaleSlate
Border RadiusLg