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
<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 ">
<img src="https://i.pravatar.cc/150?u=circle" alt="Avatar circle" class="w-14 h-14 text-lg rounded-full object-cover" />
</div>
<span class="text-sm text-grayscale-600">circle</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<img src="https://i.pravatar.cc/150?u=square" alt="Avatar square" class="w-14 h-14 text-lg rounded-none object-cover" />
</div>
<span class="text-sm text-grayscale-600">square</span>
</div>
<div class="flex flex-col items-center gap-2">
<div class="relative inline-flex ">
<img src="https://i.pravatar.cc/150?u=rounded" alt="Avatar rounded" class="w-14 h-14 text-lg rounded-lg object-cover" />
</div>
<span class="text-sm text-grayscale-600">rounded</span>
</div>
</div>
<div class="flex flex-wrap items-center gap-6 p-4 mt-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">
JD
</div>
</div>
<span class="text-sm text-grayscale-600">circle</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-none bg-primary-100 text-primary-700 flex items-center justify-center font-medium">
JD
</div>
</div>
<span class="text-sm text-grayscale-600">square</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-lg bg-primary-100 text-primary-700 flex items-center justify-center font-medium">
JD
</div>
</div>
<span class="text-sm text-grayscale-600">rounded</span>
</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
<div class="flex flex-wrap items-center gap-6 p-4">
<% [:circle, :square, :rounded].each do |shape| %>
<div class="flex flex-col items-center gap-2">
<%= render BetterUi::AvatarComponent.new(
src: "https://i.pravatar.cc/150?u=#{shape}",
alt: "Avatar #{shape}",
size: :lg,
shape: shape
) %>
<span class="text-sm text-grayscale-600"><%= shape %></span>
</div>
<% end %>
</div>
<div class="flex flex-wrap items-center gap-6 p-4 mt-4">
<% [:circle, :square, :rounded].each do |shape| %>
<div class="flex flex-col items-center gap-2">
<%= render BetterUi::AvatarComponent.new(
name: "John Doe",
variant: :primary,
size: :lg,
shape: shape
) %>
<span class="text-sm text-grayscale-600"><%= shape %></span>
</div>
<% end %>
</div>