Sha256: 79bc1f4b2813a005445206ee1f62c49f9930ba01ae00e116dd2919d355f0cf38

Contents?: true

Size: 579 Bytes

Versions: 7

Compression:

Stored size: 579 Bytes

Contents

<%
value = params.key?(param[:name]) ? params[param[:name]] : param[:default]
%>
<div
  ref="<%= @example.id %>-param-<%= param[:name] %>-input"
  class="px-4 py-3"
>
  <div class="flex items-start max-w-[800px]">
    <div class="flex-none py-2" :style="`width: ${horizontal ? '200' : '120' }px`">
      <label for="param-<%= param[:name] %>" class="font-bold">
        <%= param[:name].titleize %>
      </label>
    </div>
    <div class="flex-grow">
      <%= render "lookbook/inputs/#{param[:input]}",
        **param,
        value: value
      %>
    </div>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lookbook-0.6.1 app/views/lookbook/components/_param.html.erb
lookbook-0.6.0 app/views/lookbook/components/_param.html.erb
lookbook-0.5.2 app/views/lookbook/components/_param.html.erb
lookbook-0.5.1 app/views/lookbook/components/_param.html.erb
lookbook-0.5.0 app/views/lookbook/components/_param.html.erb
lookbook-0.5.0.beta.2 app/views/lookbook/components/_param.html.erb
lookbook-0.5.0.beta.1 app/views/lookbook/components/_param.html.erb