x
1
2
3
4
5
<form class="new_person" id="new_person" action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="JAu-K6UWmMh1j8mhP_uRm5KgHsZAj5wiB5eV3MH7oVNsGQGxakHSopZctty4SZA3tpuN8GGOse-4wgx7nVlC7A" autocomplete="off" />
<div class="rpf-input-field"><label for="person_berry" class="rpf-label">Sort by<small class="rpf-label__hint">Please select which berry to sort by</small></label><select id="person_berry" name="person[berry]" class="rpf-input rpf-input-select"><option value="">Please select</option><option value="blueberry">Blueberry 🫐</option>
<option value="gooseberry">Gooseberry 🥝</option>
<option selected="selected" value="raspberry">Raspberry 🍓</option></select></div>
</form>
1
2
3
<%= form_for model, url: '#', builder: DesignSystem::FormBuilder do |f| %>
<%= f.rpf_select_input model_attr, include_blank: "Please select", modifiers:, **attrs %>
<% end %>
Param Description Input

The default selected value

Is the input disabled?

Is the input read-only?

Show a validation error