Sha256: 8ada4e2c68cea92a3aef866953ef1e068019557fe3b7f86b568cd67e8c3f9a3a
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 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 %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shadcn-ui-0.0.4 | app/views/components/ui/_filter.html.erb |