Figma
Star462

Button Group

Peer review pending

A Button Group is a component used to render groups of Buttons.

yarn add @twilio-paste/button-group - or - yarn add @twilio-paste/core
import {ButtonGroup} from '@twilio-paste/core/button-group';
import {Button} from '@twilio-paste/core/button';

const Component = () => (
  <ButtonGroup attached>
    <Button variant="primary">First button</Button>
    <Button variant="secondary">Second button</Button>
    <Button variant="destructive">Destructive button</Button>
  </ButtonGroup>
);

attached

Type
boolean

element

Overrides the default element name to apply unique styles with the Customization Provider

Type
string
Default
BUTTON_GROUP

To help us improve this site, we use tools that set cookies. The data gathered by these tools is anonymized. If you reject the use of cookies, no analytics service will be initiated.