Sha256: d15796c1f7164a2584dfe628a7831f5df174277382ed1892f23d71e1bc3a055a

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

Contents

<% items = rendered_examples.filter { |example| example[:notes].present? } %>
<% if items.many? %>
  <div class="divide-y divide-dashed divide-lookbook-divider bg-lookbook-prose h-full w-full">
    <% items.each do |item| %>
      <div class="px-4 py-6 relative">
        <h6 class="italic font-mono mb-4 opacity-40">
          # <%= item[:label] %>
        </h6>
        <%= render_component :prose, content: item[:notes] %>
      </div>
    <% end %>
  </div>
<% else %>
  <div class="p-4 py-4 bg-lookbook-prose w-full h-full">
    <%= render_component :prose do %>
      <%== items.any? ? items.first[:notes] : "<em class='opacity-50'>No notes provided.</em>" %>
    <% 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/_notes.html.erb