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

Disables all buttons inside the group.

disabled: boolean

Gets/Sets the currently selected buttons (their values).

selectedItems: string[]

Controls the mode of selection for the button group.

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