The igc-toggle-button wraps a native button element and exposes additional value and selected properties. It is used in the context of an igc-button-group to facilitate the creation of group/toolbar like UX behaviors.

Slots
Renders — the label/content of the button.
CSS Parts
toggle — The native button element.

Determines whether the button is disabled.

disabled: boolean

Determines whether the button is selected.

selected: boolean

The value attribute of the control.

value: string

Removes focus from the button.

blur(): void

Returns void

Simulates a mouse click on the element.

click(): void

Returns void

Sets focus on the button.

focus(options: FocusOptions): void

Parameters

  • options: FocusOptions

Returns void