Sha256: bf1b95ad120f6af9669cd5e81f2907d1c3d06046451de2c0b515fab130697af5

Contents?: true

Size: 886 Bytes

Versions: 4

Compression:

Stored size: 886 Bytes

Contents

<%= render_component_tag :tr, "@keydown.stop": true do %>  
  <td class="param-label">
    <label for="param-<%= @name %>">
      <span class="mr-0.5"><%== @label %></span>
      <% if hint? %>
        <span x-data="tooltipComponent" class="inline-block cursor-help relative top-[2px]">
          <%= icon :help_circle, size: 3.5, class: "opacity-40 hover:opacity-100 transition" %>
          <div class="hidden" x-ref="tooltip">
            <%= @hint %>
          </div>
        </span>
      <% end %>
    </label>
  </td>
  <td class="param-description <%= "param-description-empty" unless description? %>">
    <% if description? %>
      <p class="opacity-70"><%= @description %></p>
    <% else %>
      <p class="italic opacity-40">&mdash;</p>
    <% end %>
  </td>
  <td class="param-input">
    <div class="param-input-wrapper">
      <%= input %>
    </div>
  </td>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lookbook-1.2.1 app/components/lookbook/params/field/component.html.erb
lookbook-1.2.0 app/components/lookbook/params/field/component.html.erb
lookbook-1.1.1 app/components/lookbook/params/field/component.html.erb
lookbook-1.1.0 app/components/lookbook/params/field/component.html.erb