Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ToggleInput = props => {
return (
<label size="{props.size}">
<input size="{props.size}" type="checkbox" value="{props.value}" checked="{props.isChecked}" disabled="{props.isDisabled}" name="{props.name}" id="{props.id}">
<span size="{props.size}" aria-hidden="true">
</span></label>
);
};
htmlFor={this.state.id}
hasError={this.props.hasError}
disabled={this.props.isDisabled}
>
<div> getCheckboxWrapperStyles(this.props, theme)}>
{(() => {
if (this.props.isIndeterminate)
return ;
if (this.props.isChecked) return ;
return ;
})()}
</div>
{this.props.children && (
<div>
</div>