Options
All
  • Public
  • Public/Protected
  • All
Menu

A component that allows you to switch between an "on" and "off" state.

Hierarchy

Index

Constructors

constructor

  • new Switch(state: "on" | "off"): Switch

Methods

addListener

  • addListener(listener: Listener): Switch

setValue

  • setValue(state: "on" | "off"): void

Generated using TypeDoc