Sha256: 5db36f0fca0edba0bdf5e4ed9f7092efbcf58d7146f957af5c4d44ac710cd375

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

<div class="ariadne-space-y-3">
  <% if label %>
    <label class="<%= style(:label) %>"><%= label %></label>
  <% end %>
  <select name="<%= name %>" class="<%= style(:select) %>" <%= html_attributes %>>
    <% choices.each do |choice| %>
      <option <%= "selected" if selected?(choice) %> value="<%= choice.value %>"><%= choice.name %></option>
<% end %>
</select>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.85 app/components/ariadne/form/select/component.html.erb
ariadne_view_components-0.0.84 app/components/ariadne/form/select/component.html.erb
ariadne_view_components-0.0.83.3 app/components/ariadne/form/select/component.html.erb
ariadne_view_components-0.0.83.2 app/components/ariadne/form/select/component.html.erb
ariadne_view_components-0.0.83.1 app/components/ariadne/form/select/component.html.erb
ariadne_view_components-0.0.83 app/components/ariadne/form/select/component.html.erb