You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.
Checkbox and Radio components provide some way to access the underlying input element.
Motivation
Sometimes it's handy to access the input element directly(Such as integrate with react-hook-form), while the Checkbox and Radio components both only accept the ref prop which let us access the wrapping div element.
Example
<label><Checkboxname="checkbox"ref={ref}/> check me
</label>// ref does not refer to the actual `input` element, maybe add `innerRef` prop? <Checkboxname="checkbox"ref={ref}innerRef={checkboxInputRef}/>
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🚀 Feature Proposal
Checkbox
andRadio
components provide some way to access the underlying input element.Motivation
Sometimes it's handy to access the input element directly(Such as integrate with react-hook-form), while the
Checkbox
andRadio
components both only accept theref
prop which let us access the wrapping div element.Example
The text was updated successfully, but these errors were encountered: