import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' const style = { label: { position: 'relative', width: '18px', height: '18px', border: '1px solid #999', borderRadius: '3px', backgroundColor: '#eee', cursor: 'pointer' }, checked: { position: 'absolute', top: '-3px', left: '2px', fontSize: '18px', color: '#333' }, input: { width: '0', height: '0', visibility: 'hidden' }, disabled: { cursor: 'default' } } export const Checkbox = props => Checkbox.propTypes = { name: PropTypes.string.isRequired, onClickCheckbox: PropTypes.func.isRequired, checked: PropTypes.bool, defaultChecked: PropTypes.bool, disabled: PropTypes.bool } Checkbox.defaultProps = { checked: false, disabled: false } export default Checkbox