import React from 'react'; import './index.less'; function CheckboxItem(props) { const { checked, theme = 'default', onClick } = props; return ( <div className={`checkbox-item ${theme} ${checked ? 'checked' : ''}`} onClick={() => onClick && onClick(!checked)} /> ); } CheckboxItem.propTypes = {}; export default CheckboxItem;