Arctic Design
Get StartedFoundationsComponentsExamples
K

ButtonGroup

Groups multiple buttons together, enabling related actions to be displayed and managed cohesively.

Usage
Variant
Size
Orientation
Disabled
import { ButtonGroup } from '@arctic-kit/snow';
function Demo() {
return (
<ButtonGroup variant="outlined" size="medium" orientation="horizontal">
<Button>First</Button>
<Button>Second</Button>
<Button disabled>Third</Button>
<Button>Fourth</Button>
</ButtonGroup>
);
}
It can be combined with ActionMenu to create a SplitButton
Variant
Size
Orientation
import { ActionMenu, ActionMenuItem, Button, ButtonGroup } from '@arctic-kit/snow';
function Demo() {
return (
<ButtonGroup variant="outlined" size="medium" orientation="horizontal">
<Button onClick={() => console.log('button')}>Button</Button>
<ActionMenu placement='bottom-end'>
<ActionMenuItem label='Undo' onClick={() => console.log('Undo')} />
<ActionMenuItem
label='Redo'
disabled
onClick={() => console.log('Redo')}
/>
<ActionMenuItem label='Cut' onClick={() => console.log('Cut')} />
</ActionMenu>
</ButtonGroup>
);
}

API Reference

PropsTypeDefault
colorSnowColor"primary"
disabledboolean | undefined---
orientation"horizontal" | "vertical"horizontal
size"small" | "medium" | "large"medium
variantButtonVariantsoutlined