Similar to a checkbox, a switch controls the state of a single setting on or off.

  • The switch label.

base - The base wrapper of the switch.

control - The switch input element.

thumb - The position indicator of the switch.

label - The switch label.

Callable

  • Returns ReactNode

Events

Events

Emitted when the control's checked state changes.

Type declaration