Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
role="presentation"
aria-hidden
className={classnames([
props.className,
props.theme[props.themeId].root,
props.disabled ? props.theme[props.themeId].disabled : null,
props.checked ? props.theme[props.themeId].checked : null
])}
onClick={event => {
if (!props.disabled && props.onChange) {
props.onChange(!props.checked, event);
}
}}
>
<input type="checkbox">
<div>
<div>
{props.label && (
// eslint-disable-next-line
<label>
{props.label}</label></div></div>
render={({ inputType }) => (
<input required="required" readonly="{this.props.readOnly}" type="{inputType}">
)}
/>