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.

Renders - the label/content of the button.

toggle - The native button element.

Callable

  • Returns ReactNode

Methods

  • Removes focus from the button.

    Returns void

  • Simulates a mouse click on the element.

    Returns void

  • Sets focus on the button.

    Parameters

    • options: FocusOptions

    Returns void

Properties

disabled: boolean

Determines whether the button is disabled.

selected: boolean

Determines whether the button is selected.

value: string

The value attribute of the control.