import React from 'react';
import ReactDOM from 'react-dom';
import Switch from '..';

function onChange(checked) {
  console.log(`switch to ${checked}`);
}

ReactDOM.render(
  <div>
    <Switch
      autoWidth
      checkedChildren="on"
      onChange={onChange}
      unCheckedChildren="off"
      aria-label="accessible switch"
    />
  </div>,
  document.getElementById('switch-demo-6'),
);
