cs-example"><div class="docs-example-body"><button id="toggle1" class="hx-btn">Toggle Button</button>
<button id="toggle2" class="hx-btn">Toggle Button Off</button><script>toggle1 = new hx.ToggleButton('#toggle1')

toggle1.on('change', function(data) {
  hx.notify.info("Toggle 1 set to " + (data ? "on" : "off"));
})

toggle2 = new hx.ToggleButton('#toggle2', {value: false})

toggle2.on('change', function(data) {
  hx.notify.info("Toggle 2 set to " + (data ? "on" : "off"));
})</script></div><div class="docs-