Sha256: db4a8c1452c8074d357f053002570f22d26ffa1a6d9de05907ead58f9c014dfd

Contents?: true

Size: 588 Bytes

Versions: 25

Compression:

Stored size: 588 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/previews/inputs/#{param[:input]}",
        **param,
        value: value
      %>
    </div>
  </div>
</div>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
lookbook-0.9.8 app/views/lookbook/components/_param.html.erb
lookbook-0.9.7 app/views/lookbook/components/_param.html.erb
lookbook-0.9.6 app/views/lookbook/components/_param.html.erb
lookbook-0.9.5 app/views/lookbook/components/_param.html.erb
lookbook-0.9.4 app/views/lookbook/components/_param.html.erb
lookbook-0.9.3 app/views/lookbook/components/_param.html.erb
lookbook-0.9.2 app/views/lookbook/components/_param.html.erb
lookbook-0.9.1 app/views/lookbook/components/_param.html.erb
lookbook-0.9.0 app/views/lookbook/components/_param.html.erb
lookbook-0.8.3 app/views/lookbook/components/_param.html.erb
lookbook-0.8.2 app/views/lookbook/components/_param.html.erb
lookbook-0.8.1 app/views/lookbook/components/_param.html.erb
lookbook-0.8.0 app/views/lookbook/components/_param.html.erb
lookbook-0.8.0.beta.0 app/views/lookbook/components/_param.html.erb
lookbook-0.7.4 app/views/lookbook/components/_param.html.erb
lookbook-0.7.3 app/views/lookbook/components/_param.html.erb
lookbook-0.7.2 app/views/lookbook/components/_param.html.erb
lookbook-0.7.2.beta.5 app/views/lookbook/components/_param.html.erb
lookbook-0.7.2.beta.4 app/views/lookbook/components/_param.html.erb
lookbook-0.7.2.beta.3 app/views/lookbook/components/_param.html.erb