Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div class="lui-flex_layout">
<div class="grow basis-6/12 ">
<div class="w-full w-full lui-dummy_slot text-[#78818a] text-primary-xs-bold leading-none">
1
</div>
</div>
</div>
<div class="text-center mt-8">
Current size:
<p class="sm:hidden">less than SM</p>
<p class="hidden sm:block md:hidden">SM</p>
<p class="hidden md:block lg:hidden">MD</p>
<p class="hidden lg:block xl:hidden">LG</p>
<p class="hidden xl:block xxl:hidden">XL</p>
<p class="hidden xxl:block">XXL</p>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<%
size = params["size"]&.to_i || 6
n_sections = params["n_sections"]&.to_i || 1
grow = params.key?(:grow) ? params[:grow] : true
%>
<%= render LooposUi::FlexLayout.new(size: size, grow: grow) do |layout| %>
<% n_sections.times do |i| %>
<% layout.with_section do %>
<%= render LooposUi::DummySlot.new(text: i + 1) %>
<% end %>
<% end %>
<% end %>
<%# Div that changes text depending on the media query size %>
<div class="text-center mt-8">
Current size:
<p class="sm:hidden">less than SM</p>
<p class="hidden sm:block md:hidden">SM</p>
<p class="hidden md:block lg:hidden">MD</p>
<p class="hidden lg:block xl:hidden">LG</p>
<p class="hidden xl:block xxl:hidden">XL</p>
<p class="hidden xxl:block">XXL</p>
</div>
Param Description Input

Default size

Number of sections