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="4Oh-UAnrUZQGEDJGmr8RzIMt0zrhKDsbu1kGpYixDLlzETAV5frlPzXIaERDWJRI35x5LtO_3yRywfss34F-Dw" 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