Groups a series of toggle buttons together, exposing features such as layout and selection.

Element
igc-button-group
Slots
default — Renders the toggle buttons of the group.
CSS Parts
group — The button group container.

The orientation of the buttons in the group.

alignment: ContentOrientation = 'horizontal'

Defined in src/components/button-group/button-group.ts:124

Whether all buttons in the group are disabled.

disabled: boolean = false

Defined in src/components/button-group/button-group.ts:115

The selection mode of the group. A change of the mode clears the selection.

selection: ButtonGroupSelection = 'single'

Defined in src/components/button-group/button-group.ts:133

The tagName read-only property of the Element interface returns the tag name of the element on which it's called.

MDN Reference

tagName: "igc-button-group" = 'igc-button-group'

Defined in src/components/button-group/button-group.ts:57

The values of the selected buttons. A button without a value is not in the list.

When set, selects the buttons with these values. A single selection mode selects only the first matching button.

get selectedItems(): string[]

Defined in src/components/button-group/button-group.ts:144

Returns string[]