Button Group
import { KbqButtonModule } from '@koobiq/components/button';

This directive enhances `kbq-button` elements acting as dropdown triggers, visually indicating the active state with the `kbq-active` class, following Koobiq Design System. The directive relies on a separate `KbqDropdownTrigger` directive to get dropdown's state.

Selector: [kbq-button][kbqDropdownTriggerFor]

Properties
Name Description
dropdownTrigger: KbqDropdownTrigger

Root directive that groups related buttons, propagating a shared style, color, and disabled state to every nested button

Selector: [kbqButtonGroupRoot]

Properties
Name Description
@Input()
color: string
Color applied to the group and propagated to every nested button. individual button's color preserved but updated when group input changed.
@Input()
disabled: boolean
Whether the root is disabled.
@Input()
kbqStyle: string
Style applied to the group and propagated to every nested button. individual button's style preserved but updated when group input changed.
colorClassName: string current class name of color
Methods
setDefaultColor
this color will be used as a default value. For example [color]="'' | false | undefined | null".

Selector: [kbq-button]

Properties
Name Description
icons: QueryList
isIconButton: boolean
nativeElement: HTMLElement
Methods
updateClassModifierForIcons

Groups and styling related `KbqButton`s into a single visual unit.

Selector: kbq-button-group, [kbq-button-group]

Properties
Name Description
@Input()
orientation: InputSignal
Layout direction: `'horizontal'` or `'vertical'`

Selector: [kbq-button]

Properties
Name Description
@Input()
disabled: boolean
Whether the button is disabled.
@Input()
kbqStyle: string
color: string
colorClassName: string current class name of color
hasFocus: boolean
textElement: ElementRef
Methods
focus
focusViaKeyboard
getHostElement
haltDisabledEvents
onBlur
onFocus
projectContentChanged
setDefaultColor
this color will be used as a default value. For example [color]="'' | false | undefined | null".
const buttonLeftIconClassName: string;
const buttonRightIconClassName: string;
Вопросы и предложения по документации
Если у вас есть вопросы или вы хотите внести свой вклад в написание документации, пожалуйста, создайте issue в нашем репозитории на GitHub.