JSFiddle - React, Tailwind, and code Playground
by WILLIAM CORREA
HTML
<div>
<div>Tipo de Pessoa</div>
<label>
<small>Pessoa Física</small>
<input
name="personType"
type="radio"
value="pessoa-fisica"
onchange="changePersonType('pessoa-fisica')"
>
</label>
<label>
<small>Pessoa Jurídica</small>
<input
name="personType"
type="radio"
value="pessoa-juridica"
onchange="changePersonType('pessoa-juridica')"
>
</label>
</div>
<div>
<div>Documento</div>
<label id="CPF">
<small>CPF</small> <input name="CPF">
</label>
<label id="CNPJ">
<small>CNPJ</small> <input name="CNPJ">
</label>
</div>
CSS
body > div {
margin-bottom: 15px;
}