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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<div class="flex flex-col gap-2">
<p class="text-sm text-gray-11 px-1">Items flow down each column first, then across. Use <code>rows:</code> to set how many rows fit before starting a new column.</p>
<div class="midwest-grid vertical" style="--grid-width: 160px; --grid-gap: 1rem; grid-template-rows: repeat(3, auto)">
<article data-controller="midwest-card" class="midwest-card">
<div class="wrap">
<section>
<p class="font-bold text-center">Item 1</p>
</section>
</div>
</article>
<article data-controller="midwest-card" class="midwest-card">
<div class="wrap">
<section>
<p class="font-bold text-center">Item 2</p>
</section>
</div>
</article>
<article data-controller="midwest-card" class="midwest-card">
<div class="wrap">
<section>
<p class="font-bold text-center">Item 3</p>
</section>
</div>
</article>
<article data-controller="midwest-card" class="midwest-card">
<div class="wrap">
<section>
<p class="font-bold text-center">Item 4</p>
</section>
</div>
</article>
<article data-controller="midwest-card" class="midwest-card">
<div class="wrap">
<section>
<p class="font-bold text-center">Item 5</p>
</section>
</div>
</article>
<article data-controller="midwest-card" class="midwest-card">
<div class="wrap">
<section>
<p class="font-bold text-center">Item 6</p>
</section>
</div>
</article>
<article data-controller="midwest-card" class="midwest-card">
<div class="wrap">
<section>
<p class="font-bold text-center">Item 7</p>
</section>
</div>
</article>
<article data-controller="midwest-card" class="midwest-card">
<div class="wrap">
<section>
<p class="font-bold text-center">Item 8</p>
</section>
</div>
</article>
<article data-controller="midwest-card" class="midwest-card">
<div class="wrap">
<section>
<p class="font-bold text-center">Item 9</p>
</section>
</div>
</article>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
<div class="flex flex-col gap-2">
<p class="text-sm text-gray-11 px-1">Items flow down each column first, then across. Use <code>rows:</code> to set how many rows fit before starting a new column.</p>
<%= midwest_grid(width: 160, gap: 1, vertical: true, rows: 3) do %>
<% 9.times do |i| %>
<%= midwest_card do %>
<p class="font-bold text-center">Item <%= i + 1 %></p>
<% end %>
<% end %>
<% end %>
</div>

No assets to display.
Add a .js or .css file alongside the component to see it here.

Accessibility

Figma embed for Grid/vertical

Annotate a preview to embed its Figma design here:

@figma "https://figma.com/..."