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
<div class="max-w-4xl mx-auto p-6 space-y-8"> <h2 class="text-xl font-bold mb-4">Empty State</h2> <div> <h3 class="text-lg font-semibold mb-2">Slot Mode - Empty</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-left first:ps-4 first:pe-3 sm:first:ps-6 last:ps-3 last:pe-4 sm:last:pe-6" scope="col" > Role </th> </tr> </thead> <tbody> <tr> <td colspan="3"> <div class="py-8 text-center text-grayscale-500"> <p class="text-lg font-medium">No users found</p> <p class="text-sm mt-1">Try adjusting your search criteria.</p> </div> </td> </tr> </tbody> </table> </div> </div> <div> <h3 class="text-lg font-semibold mb-2">Collection Mode - Empty</h3> <div class="shadow-sm ring-1 ring-black/5 sm:rounded-lg overflow-x-auto"> <table class="min-w-full divide-y divide-info-300"> <thead class="bg-info-50 text-info-900"> <tr> <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> </tr> </thead> <tbody> <tr> <td colspan="2"> <div class="py-8 text-center text-grayscale-500"> <p class="text-lg font-medium">No records available</p> <p class="text-sm mt-1">Data will appear here once added.</p> </div> </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
29
30
31
32
33
34
35
36
<div class="max-w-4xl mx-auto p-6 space-y-8"> <h2 class="text-xl font-bold mb-4">Empty State</h2> <div> <h3 class="text-lg font-semibold mb-2">Slot Mode - Empty</h3> <%= render BetterUi::Table::TableComponent.new(variant: :primary) do |t| %> <% t.with_header do |h| %> <% h.with_cell(label: "Name") %> <% h.with_cell(label: "Email") %> <% h.with_cell(label: "Role") %> <% end %> <% t.with_empty_state do %> <div class="py-8 text-center text-grayscale-500"> <p class="text-lg font-medium">No users found</p> <p class="text-sm mt-1">Try adjusting your search criteria.</p> </div> <% end %> <% end %> </div> <div> <h3 class="text-lg font-semibold mb-2">Collection Mode - Empty</h3> <%= render BetterUi::Table::TableComponent.new(collection: [], variant: :info) do |t| %> <% t.with_column(key: :name, label: "Name") %> <% t.with_column(key: :email, label: "Email") %> <% t.with_empty_state do %> <div class="py-8 text-center text-grayscale-500"> <p class="text-lg font-medium">No records available</p> <p class="text-sm mt-1">Data will appear here once added.</p> </div> <% end %> <% end %> </div></div>No notes provided.
No params configured.