Sha256: 720c50512bd2a5460652641c43cda1d8138d3c5b19d809c3e4ba17ff20eefd33
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 Bytes
Contents
<div data-controller="ui--filter"> <%= render_card do %> <div class="flex items-center"> <%= content_for :filter_icon %> <%= render_input name: "filter", placeholder: "Filter items...", style: :borderless, class: input_class, data: {"ui--filter-target": "source", action: "input->ui--filter#filter"} %></div> <%= render_separator %> <div class="<%= options[:class] %>"> <%= content_tag :div, role: "group" do items.each do |item| %> <div data-ui--filter-target="item"><%= list_item(value: item[:value], name: item[:name], selected: item[:selected]) %></div> <% end end %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shadcn-ui-0.0.3 | app/views/components/ui/_filter.html.erb |
shadcn-ui-0.0.2 | app/views/components/ui/_filter.html.erb |