Button Group
import { AXButtonGroupModule } from '@acorex/components/button-group'; Overview
Default
Solid
MD
Single
Usage
ax-button-groupPreview
Code
Dropdown Items
Preview
Code
Splitted Buttons
Preview
Code
Design Tokens
| --ax-comp-button-group-border-radius | var(--ax-sys-border-radius) | Border radius of the button group. Uses the system's border radius. |
Props
| color | string | ghost | Specifies the color of the button group. |
| look | AXStyleLookType | solid | Determines the appearance of the button group. |
| selection | string | single | Specifies the selection mode of the button group (e.g., single or multiple selection). |
| disable | boolean | false | Disables the button group. |
Methods
| onClick | AXClickEvent | Specifies the function to be called when the button is clicked. |
| onBlur | AXFocusEvent | Specifies the function to be called when the button loses focus. |
| onFocus | AXFocusEvent | Specifies the function to be called when the button gains focus. |
| lookChange | AXStyleLookType | Specifies the function to be called when the appearance of the button changes. |
| colorChange | AXStyleColorType | Specifies the function to be called when the color of the button changes. |
| disabledChange | boolean | Specifies the function to be called when the disabled state of the button changes. |
| selectionChange | AXSelectionMode | Specifies the function to be called when the selection mode of the button group changes. |