import _ from "lodash" import React from "react" export interface LargeCheckboxProps { /** Optional id for testing purposes */ id?: string value?: boolean | null onClick: () => void children?: React.ReactNode } /** * A checkbox component that displays a clickable checkbox with optional children as label. */ export default class LargeCheckbox extends React.Component { private divRef = React.createRef() /** Focuses the checkbox element */ focus() { this.divRef.current?.focus() } render() { return
{this.props.value ? ( ) : ( )} {this.props.children}
} }