Skip to content

Commit 612185f

Browse files
committed
Prioritize previews
1 parent 4d0a76d commit 612185f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

demo/app/views/docs/components/show.html.erb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@
5454
<%= simple_format(@code_object.docstring) %>
5555
</section>
5656

57+
<% if @lookbook_embeds.any? %>
58+
<section>
59+
<h2 class="mt-8 text-2xl font-bold">Examples</h2>
60+
61+
<% @lookbook_embeds.each do |lookbook_tag| %>
62+
<lookbook-embed panels="source" preview="<%= lookbook_tag.text.strip %>" scenario="*"></lookbook-embed>
63+
<% end %>
64+
</section>
65+
<% end %>
66+
5767
<% if @viewcomponent_slots.any? %>
5868
<section>
5969
<h2 class="mt-8 text-2xl font-bold">Slots</h2>
@@ -79,16 +89,6 @@
7989
</section>
8090
<% end %>
8191

82-
<% if @lookbook_embeds.any? %>
83-
<section>
84-
<h2 class="mt-8 text-2xl font-bold">Examples</h2>
85-
86-
<% @lookbook_embeds.each do |lookbook_tag| %>
87-
<lookbook-embed panels="source" preview="<%= lookbook_tag.text.strip %>" scenario="*"></lookbook-embed>
88-
<% end %>
89-
</section>
90-
<% end %>
91-
9292
<% if @constructor %>
9393
<section>
9494
<h2 class="mt-8 text-2xl font-bold">Constructor</h2>

0 commit comments

Comments
 (0)