const { elements } = require('react-elementary').default;

const { input, label } = elements;

function CheckBox(props) {
  const { name, onChange, value } = props;
  return label(
    `${props.label}: `,
    input({ type: 'checkbox', name, onChange, value })
  );
}

module.exports = CheckBox;

const { elements } = require('react-elementary').default;

const { input, label } = elements;

function CheckBox(props) {
  const { name, onChange, value } = props;
  return label(
    { className: 'form-group' },
    `${props.label}: `,
    input({ type: 'checkbox', name, onChange, value })
  );
}

module.exports = CheckBox;

Add className form-group to Checkbox label
Add className form-group to Checkbox label
