Sha256: a8c9a8e3c22a8a1ea40547eec86e18cc9ba2e1a36fe6cfeaa3060720b415aea4

Contents?: true

Size: 631 Bytes

Versions: 45

Compression:

Stored size: 631 Bytes

Contents

<%= render_component_tag do %>
  <div class="relative">
  <input
    type="text"
    class="form-input text-sm"
    placeholder="<%== @placeholder %>"
    x-ref="input"
    x-model="<%= @model %>"
    x-effect="$dispatch('filter:change', { text, filter: this })"
    @keydown.esc.stop="clear"
    @keydown.f.stop.prevent.window="focus"
    @keydown.stop>
    <button class="text-lookbook-icon-button-stroke hover:text-lookbook-icon-button-stroke-hover focus:ring-0 focus:outline-none absolute top-1/2 right-3 -translate-y-1/2" @click="clear" :class="{hidden: !active}">
      <%= icon  :x, size: 3 %>
    </button>
</div>
<% end %>

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
lookbook-1.5.5 app/components/lookbook/filter/component.html.erb
lookbook-1.5.4 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.9 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.8 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.7 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.6 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.5 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.4 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.3 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.2 app/components/lookbook/filter/component.html.erb
lookbook-1.5.3 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.1 app/components/lookbook/filter/component.html.erb
lookbook-1.5.2 app/components/lookbook/filter/component.html.erb
lookbook-2.0.0.beta.0 app/components/lookbook/filter/component.html.erb
lookbook-1.5.1 app/components/lookbook/filter/component.html.erb
lookbook-1.5.0 app/components/lookbook/filter/component.html.erb
lookbook-1.4.5 app/components/lookbook/filter/component.html.erb
lookbook-1.4.4 app/components/lookbook/filter/component.html.erb
lookbook-1.4.3 app/components/lookbook/filter/component.html.erb
lookbook-1.4.2 app/components/lookbook/filter/component.html.erb