"use strict";

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

var _ = _interopRequireDefault(require(".."));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function onChange(checked) {
  console.log("switch to ".concat(checked));
}

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_["default"], {
  autoWidth: true,
  checkedChildren: "on",
  onChange: onChange,
  unCheckedChildren: "off",
  "aria-label": "accessible switch"
})), document.getElementById('switch-demo-6'));