import * as React from 'react' ; import * as classnames from 'classnames' ; const s = require ( './style.css' ) ; const Checkbox = function ( props ) { const { className , checked , onChange } = props ; return ( < label className = { classnames ( s . container , className ) } > < input type = "checkbox" checked = { checked } onChange = { onChange } / > < span className = { s . checkmark } > < /span> < /label>); } ; Checkbox . defaultProps = { className : '' , checked : null , } ; export default Checkbox ;