Button group
bk-button-group: a segmented control that holds either a single value or an array of values, driven by [value] / (valueChange).
Preview
A working preview of Button group in the Brickclay style. Try it.
Interact with the preview to see events here.
API reference
| Input | Type | Default | Description |
|---|---|---|---|
items | GroupItem[] | [] | { label, value } entries. |
mode | 'single' | 'multiple' | 'single' | Single value vs. array selection. |
value | any | any[] | null | Current selection. |
disabled | boolean | false | Disables the whole group. |
valueChange | EventEmitter<any> | output | Emits the new value/array on click. |