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

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

Whether all buttons in the group are disabled.

disabled: boolean

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.

selectedItems: string[]

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

selection: ButtonGroupSelection

Emitted when a button is deselected through user interaction.

onDeselect(args: CustomEvent<string | undefined>): void

Parameters

Returns void

Emitted when a button is selected through user interaction.

onSelect(args: CustomEvent<string | undefined>): void

Parameters

Returns void