Codeminer42/cm42-central

View on GitHub
app/assets/javascripts/components/forms/Checkbox.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';

const Checkbox = ({ name, onChange, checked, disabled, children, label }) => (
  <label>
    <input
      type="checkbox"
      name={name}
      checked={checked}
      disabled={disabled}
      onChange={onChange}
    />
    {label}
    {children}
  </label>
);

export default Checkbox;