ButtonGroup API
Import
Props
children
(required)
The children of the button group. These should be <Button />
or <ButtonIcon />
.
Type: ReactNode
noShadow
Whether the shadow is disabled.
Type: boolean
size
The size variant of the buttons in the group.
Type: 'small' | 'large'
color
The color variant of the buttons in the group.
Type: 'primary' | 'secondary' | 'error' | 'info' | 'warning' | 'success'
variant
The aspect variant of the buttons in the group.
Type: 'outline' | 'text'
disabled
Whether the buttons in the group are disabled.
Type: boolean
column
Whether the buttons in the group are in a column direction.
Type: boolean
className
Additional class names for extending styles.
Type: string
CSS Variables
You can customize the style of <ButtonGroup />
component by using the
following CSS variables (custom properties):
CSS Classes
.button-group
The base styles for <ButtonGroup />
component.
.button-group--no-shadow
Styles for the no shadow
variant.
.button-group--disabled
Styles for the disabled
variant.
.button-group--outline
Styles for the outline
aspect variant.
.button-group--text
Styles for the text
aspect variant.
.button-group--column
Styles for the column
direction variant.