Switch element can be used to toggle between two states. The toggle can be done either by tapping or dragging the element.
The checked prop is used to set the switch set to any one state by default.
Example:
<Ons.Switch checked={this.state.checked} onChange={this.handleSwitch} /> Gle can be done either by tapping or dragging the element. The checked prop is used to set the switch set to any one state by default.
Example:
<Ons.Switch checked={this.state.checked} onChange={this.handleSwitch} />