Skip to content

Instantly share code, notes, and snippets.

@coliveravenegas
Last active September 16, 2021 04:17
Show Gist options
  • Save coliveravenegas/4af622e80be9a6a6bd872d5d646d000f to your computer and use it in GitHub Desktop.
Save coliveravenegas/4af622e80be9a6a6bd872d5d646d000f to your computer and use it in GitHub Desktop.
<React.Fragment>
<p className="my-8 font-subtitle4">Tipo de documento</p>
<div className="flex flex-row items-start">
<Controller
render={({ onChange, value, ref }) => (
<>
<Radio
htmlProps={{
htmlFor: 'NIT',
}}
className="mb-16 mr-16"
checked={value === 'NIT'}
id="NIT"
label="NIT"
name="documentType"
onChange={onChange}
value="NIT"
/>
<Radio
checked={value === 'CEDULA'}
htmlProps={{
htmlFor: 'CEDULA',
}}
className="mb-16"
id="CEDULA"
label="Cédula"
name="documentType"
onChange={onChange}
value="CEDULA"
/>
</>
)}
name="documentType"
control={control}
/>
</div>
</React.Fragment>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment