Sha256: ca252cbbc2d800d4bb07437c62d565ad6ff76979044bf43df1876adaeb8a2f2f

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

<% if @example.params.none? %>
  <div class="p-4 w-full h-full bg-lookbook-prose">
    <%= render_component :prose do %>
      <em class='opacity-50'>No params configured.</em>
    <% end %>
  </div>
<% else %>
  <div class="py-3 h-full">
    <%= render_component :params_editor do |editor| %>
      <% @example.params.each do |param| %>
        <% editor.field **param, value: params[param[:name]] %>
      <% end %>
    <% end %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lookbook-1.0.0.beta.0 app/views/lookbook/previews/panels/_params.html.erb