Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div class="space-y-6 p-4">
<div>
<p class="text-sm font-medium text-gray-500 mb-2">Size: <code>sm</code></p>
<div class="w-full max-w-screen-sm px-4 sm:px-6 lg:px-8 mx-auto bg-blue-50 border border-blue-200 rounded-lg" >
<div class="bg-white p-4 rounded shadow-sm text-center">
Container with <strong>sm</strong> max-width
(max-w-screen-sm)
</div>
</div>
</div>
<div>
<p class="text-sm font-medium text-gray-500 mb-2">Size: <code>md</code></p>
<div class="w-full max-w-screen-md px-4 sm:px-6 lg:px-8 mx-auto bg-blue-50 border border-blue-200 rounded-lg" >
<div class="bg-white p-4 rounded shadow-sm text-center">
Container with <strong>md</strong> max-width
(max-w-screen-md)
</div>
</div>
</div>
<div>
<p class="text-sm font-medium text-gray-500 mb-2">Size: <code>lg</code></p>
<div class="w-full max-w-screen-lg px-4 sm:px-6 lg:px-8 mx-auto bg-blue-50 border border-blue-200 rounded-lg" >
<div class="bg-white p-4 rounded shadow-sm text-center">
Container with <strong>lg</strong> max-width
(max-w-screen-lg)
</div>
</div>
</div>
<div>
<p class="text-sm font-medium text-gray-500 mb-2">Size: <code>xl</code></p>
<div class="w-full max-w-screen-xl px-4 sm:px-6 lg:px-8 mx-auto bg-blue-50 border border-blue-200 rounded-lg" >
<div class="bg-white p-4 rounded shadow-sm text-center">
Container with <strong>xl</strong> max-width
(max-w-screen-xl)
</div>
</div>
</div>
<div>
<p class="text-sm font-medium text-gray-500 mb-2">Size: <code>full</code></p>
<div class="w-full max-w-full px-4 sm:px-6 lg:px-8 mx-auto bg-blue-50 border border-blue-200 rounded-lg" >
<div class="bg-white p-4 rounded shadow-sm text-center">
Container with <strong>full</strong> max-width
(max-w-full)
</div>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="space-y-6 p-4">
<% [:sm, :md, :lg, :xl, :full].each do |size| %>
<div>
<p class="text-sm font-medium text-gray-500 mb-2">Size: <code><%= size %></code></p>
<%= render BetterUi::ContainerComponent.new(size: size, container_classes: "bg-blue-50 border border-blue-200 rounded-lg") do %>
<div class="bg-white p-4 rounded shadow-sm text-center">
Container with <strong><%= size %></strong> max-width
(<%= size == :full ? "max-w-full" : "max-w-screen-#{size}" %>)
</div>
<% end %>
</div>
<% end %>
</div>