x
1
2
3
4
<form action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="Npy-7RQ6EEcBaJB8nfRisPcU4t6EoRhsfCkBHwijwwxerjC1uVqRyDqDZ6bFvXn1zx0iQ3s48SCLX9h9slUHAg" autocomplete="off" />
<label class="rpf-input-radio"><input id="berry_raspberry" name="berry" type="radio" value="raspberry">Raspberry</label>
<label class="rpf-input-radio"><input id="berry_gooseberry" name="berry" type="radio" value="gooseberry">Gooseberry</label>
</form>
1
2
3
4
<%= form_with url: '#', builder: DesignSystem::FormBuilder do |f| %>
<%= f.rpf_radio_input :berry, value: 'raspberry', label: 'Raspberry', checked:, modifiers:, **attrs %>
<%= f.rpf_radio_input :berry, value: 'gooseberry', label: 'Gooseberry', modifiers:, **attrs %>
<% end %>
Param Description Input