Sha256: ff6570b6b7f960d2f09a880c97547a67a31f37cd4d51e8ae41c70e989461dd40

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

<% if preview.params.none? %>
  <div class="p-4 w-full h-full bg-lookbook-prose-bg">
    <%= lookbook_render :prose do %>
      <em class='opacity-50'>No params configured.</em>
    <% end %>
  </div>
<% else %>
  <div class="h-full overflow-x-hidden">
    <%= lookbook_render "params/editor", inputs: Lookbook::Params.inputs do |editor| %>
      <% preview.params.each do |param| %>
        <% editor.field **param, value: params[param[:name]] %>
      <% end %>
    <% end %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lookbook-1.1.1 app/views/lookbook/previews/panels/_params.html.erb
lookbook-1.1.0 app/views/lookbook/previews/panels/_params.html.erb