Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const handleFocus = combineFns(() => {
setIsFocused(true)
}, props.onFocus)
return (
<button role="checkbox" aria-checked="{checked}">
<div>
<div>
</div>
<input type="checkbox" tabindex="-1" readonly="" checked="{checked}">
{children && (
<label>{children}</label></div></button>
if (isFunction(props.onClick)) props.onClick(evt, value)
props._onFocus(evt, value)
circleRef.current.focus()
}
const { _disabled, _error, _isFocused, _onFocus, _name } = props
return (
<label>
<div>
<div tabindex="-1" aria-checked="{props.checked}" role="radio"> _onFocus(props.value)}
ref={circleRef}
{...styles.circle(themeName, props)}
>
{props.checked && <div>}
</div>
</div></div></label>