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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<div class="max-w-4xl mx-auto p-6 space-y-8">
<h2 class="text-xl font-bold mb-4">All Sizes</h2>
<div>
<h3 class="text-lg font-semibold mb-2">Size: xs</h3>
<div class="shadow-sm ring-1 ring-black/5 sm:rounded-lg overflow-x-auto">
<table class="min-w-full divide-y divide-primary-300">
<thead class="bg-primary-50 text-primary-900">
<tr class="">
<th class="px-2 py-1.5 text-xs font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Name
</th>
<th class="px-2 py-1.5 text-xs font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Email
</th>
<th class="px-2 py-1.5 text-xs font-semibold align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Status
</th>
</tr>
</thead>
<tbody class="divide-y divide-primary-200 bg-white">
<tr class="">
<td class="px-2 py-2 text-xs text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Alice Johnson
</td>
<td class="px-2 py-2 text-xs text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
alice@example.com
</td>
<td class="px-2 py-2 text-xs text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Active
</td>
</tr>
<tr class="">
<td class="px-2 py-2 text-xs text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Bob Smith
</td>
<td class="px-2 py-2 text-xs text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
bob@example.com
</td>
<td class="px-2 py-2 text-xs text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Inactive
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="text-lg font-semibold mb-2">Size: sm</h3>
<div class="shadow-sm ring-1 ring-black/5 sm:rounded-lg overflow-x-auto">
<table class="min-w-full divide-y divide-primary-300">
<thead class="bg-primary-50 text-primary-900">
<tr class="">
<th class="px-3 py-2 text-sm font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Name
</th>
<th class="px-3 py-2 text-sm font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Email
</th>
<th class="px-3 py-2 text-sm font-semibold align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Status
</th>
</tr>
</thead>
<tbody class="divide-y divide-primary-200 bg-white">
<tr class="">
<td class="px-3 py-2.5 text-sm text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Alice Johnson
</td>
<td class="px-3 py-2.5 text-sm text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
alice@example.com
</td>
<td class="px-3 py-2.5 text-sm text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Active
</td>
</tr>
<tr class="">
<td class="px-3 py-2.5 text-sm text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Bob Smith
</td>
<td class="px-3 py-2.5 text-sm text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
bob@example.com
</td>
<td class="px-3 py-2.5 text-sm text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Inactive
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="text-lg font-semibold mb-2">Size: md</h3>
<div class="shadow-sm ring-1 ring-black/5 sm:rounded-lg overflow-x-auto">
<table class="min-w-full divide-y divide-primary-300">
<thead class="bg-primary-50 text-primary-900">
<tr class="">
<th class="px-3 py-3.5 text-sm font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Name
</th>
<th class="px-3 py-3.5 text-sm font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Email
</th>
<th class="px-3 py-3.5 text-sm font-semibold align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Status
</th>
</tr>
</thead>
<tbody class="divide-y divide-primary-200 bg-white">
<tr class="">
<td class="px-3 py-4 text-sm text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Alice Johnson
</td>
<td class="px-3 py-4 text-sm text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
alice@example.com
</td>
<td class="px-3 py-4 text-sm text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Active
</td>
</tr>
<tr class="">
<td class="px-3 py-4 text-sm text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Bob Smith
</td>
<td class="px-3 py-4 text-sm text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
bob@example.com
</td>
<td class="px-3 py-4 text-sm text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Inactive
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="text-lg font-semibold mb-2">Size: lg</h3>
<div class="shadow-sm ring-1 ring-black/5 sm:rounded-lg overflow-x-auto">
<table class="min-w-full divide-y divide-primary-300">
<thead class="bg-primary-50 text-primary-900">
<tr class="">
<th class="px-4 py-4 text-base font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Name
</th>
<th class="px-4 py-4 text-base font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Email
</th>
<th class="px-4 py-4 text-base font-semibold align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Status
</th>
</tr>
</thead>
<tbody class="divide-y divide-primary-200 bg-white">
<tr class="">
<td class="px-4 py-5 text-base text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Alice Johnson
</td>
<td class="px-4 py-5 text-base text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
alice@example.com
</td>
<td class="px-4 py-5 text-base text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Active
</td>
</tr>
<tr class="">
<td class="px-4 py-5 text-base text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Bob Smith
</td>
<td class="px-4 py-5 text-base text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
bob@example.com
</td>
<td class="px-4 py-5 text-base text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Inactive
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<h3 class="text-lg font-semibold mb-2">Size: xl</h3>
<div class="shadow-sm ring-1 ring-black/5 sm:rounded-lg overflow-x-auto">
<table class="min-w-full divide-y divide-primary-300">
<thead class="bg-primary-50 text-primary-900">
<tr class="">
<th class="px-6 py-5 text-lg font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Name
</th>
<th class="px-6 py-5 text-lg font-semibold align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Email
</th>
<th class="px-6 py-5 text-lg font-semibold align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" >
Status
</th>
</tr>
</thead>
<tbody class="divide-y divide-primary-200 bg-white">
<tr class="">
<td class="px-6 py-6 text-lg text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Alice Johnson
</td>
<td class="px-6 py-6 text-lg text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
alice@example.com
</td>
<td class="px-6 py-6 text-lg text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Active
</td>
</tr>
<tr class="">
<td class="px-6 py-6 text-lg text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Bob Smith
</td>
<td class="px-6 py-6 text-lg text-black align-middle text-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
bob@example.com
</td>
<td class="px-6 py-6 text-lg text-black align-middle text-center first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" >
Inactive
</td>
</tr>
</tbody>
</table>
</div>
</div>
</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
25
26
27
28
<div class="max-w-4xl mx-auto p-6 space-y-8">
<h2 class="text-xl font-bold mb-4">All Sizes</h2>
<% [:xs, :sm, :md, :lg, :xl].each do |size| %>
<div>
<h3 class="text-lg font-semibold mb-2">Size: <%= size %></h3>
<%= render BetterUi::Table::TableComponent.new(variant: :primary, size: size) do |t| %>
<% t.with_header do |h| %>
<% h.with_cell(label: "Name") %>
<% h.with_cell(label: "Email") %>
<% h.with_cell(label: "Status", align: :center) %>
<% end %>
<% t.with_row do |r| %>
<% r.with_cell { "Alice Johnson" } %>
<% r.with_cell { "alice@example.com" } %>
<% r.with_cell(align: :center) { "Active" } %>
<% end %>
<% t.with_row do |r| %>
<% r.with_cell { "Bob Smith" } %>
<% r.with_cell { "bob@example.com" } %>
<% r.with_cell(align: :center) { "Inactive" } %>
<% end %>
<% end %>
</div>
<% end %>
</div>