x
1
2
3
4
<form class="new_person" id="new_person" action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="HWIBLDEdW85Y_PEw7TSBHF-_AFJvnfCot8rw2tk8PHYRWak42SdKP9BD_Mv40Dq8S0IUNxbAFyHufFmMLSe9yQ" autocomplete="off" />
<label class="rpf-input-radio"><input id="person_berry_raspberry" name="person[berry]" type="radio" value="raspberry">Raspberry 🍓</label>
<label class="rpf-input-radio"><input id="person_berry_gooseberry" name="person[berry]" type="radio" value="gooseberry">Gooseberry 🥝</label>
</form>
1
2
3
4
<%= form_for model, url: '#', builder: DesignSystem::FormBuilder do |f| %>
<%= f.rpf_radio_input :berry, value: 'raspberry', modifiers:, **attrs %>
<%= f.rpf_radio_input :berry, value: 'gooseberry', modifiers:, **attrs %>
<% end %>
Param Description Input