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