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
any
- Default
BUTTON_GROUP
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.