x
1
2
3
4
<form action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="YYf3c_8By_4rhQ3el8SYZnqC6TKVq9m-sx3mr0FSMkj9W1mFFOEvgr0fBah-6G8iRcdLCa30SIALQzV0tNBOyg" 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