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
<div class="flex flex-wrap items-center gap-6 p-4">
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<div class="w-14 h-14 text-lg rounded-full bg-primary-100 text-primary-700 flex items-center justify-center font-medium">
P
</div>
</div>
<span class="text-sm text-grayscale-600">primary</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<div class="w-14 h-14 text-lg rounded-full bg-secondary-100 text-secondary-700 flex items-center justify-center font-medium">
S
</div>
</div>
<span class="text-sm text-grayscale-600">secondary</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<div class="w-14 h-14 text-lg rounded-full bg-accent-100 text-accent-700 flex items-center justify-center font-medium">
A
</div>
</div>
<span class="text-sm text-grayscale-600">accent</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<div class="w-14 h-14 text-lg rounded-full bg-success-100 text-success-700 flex items-center justify-center font-medium">
S
</div>
</div>
<span class="text-sm text-grayscale-600">success</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<div class="w-14 h-14 text-lg rounded-full bg-danger-100 text-danger-700 flex items-center justify-center font-medium">
D
</div>
</div>
<span class="text-sm text-grayscale-600">danger</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<div class="w-14 h-14 text-lg rounded-full bg-warning-100 text-warning-700 flex items-center justify-center font-medium">
W
</div>
</div>
<span class="text-sm text-grayscale-600">warning</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<div class="w-14 h-14 text-lg rounded-full bg-info-100 text-info-700 flex items-center justify-center font-medium">
I
</div>
</div>
<span class="text-sm text-grayscale-600">info</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<div class="w-14 h-14 text-lg rounded-full bg-grayscale-100 text-grayscale-700 flex items-center justify-center font-medium">
L
</div>
</div>
<span class="text-sm text-grayscale-600">light</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<div class="w-14 h-14 text-lg rounded-full bg-grayscale-800 text-grayscale-100 flex items-center justify-center font-medium">
D
</div>
</div>
<span class="text-sm text-grayscale-600">dark</span>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
<div class="flex flex-wrap items-center gap-6 p-4">
<% BetterUi::ApplicationComponent::VARIANTS.keys.each do |variant| %>
<div class="flex flex-col items-center gap-2">
<%= render BetterUi::AvatarComponent.new(
name: variant.to_s.capitalize,
variant: variant,
size: :lg
) %>
<span class="text-sm text-grayscale-600"><%= variant %></span>
</div>
<% end %>
</div>