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
<div class="flex flex-col gap-6 p-4">
<div>
<p class="text-sm text-gray-11 mb-2">No max (all visible)</p>
<div role="group" aria-label="3 avatars" class="midwest-group size-default gap-overlap midwest-avatar-group">
<span class="midwest-avatar size-default theme-red shape-circle" title="You tabbed on an Avatar for Alice Adams">
<div class="letter" title="Alice Adams">
AA
</div>
</span>
<span class="midwest-avatar size-default theme-red shape-circle" title="You tabbed on an Avatar for Bob Baker">
<div class="letter" title="Bob Baker">
BB
</div>
</span>
<span class="midwest-avatar size-default theme-red shape-circle" title="You tabbed on an Avatar for Carol Clark">
<div class="letter" title="Carol Clark">
CC
</div>
</span>
</div>
</div>
<div>
<p class="text-sm text-gray-11 mb-2">max: 3 with overflow</p>
<div role="group" aria-label="5 avatars" class="midwest-group size-default gap-overlap midwest-avatar-group">
<span class="midwest-avatar size-default theme-red shape-circle" title="You tabbed on an Avatar for Alice Adams">
<div class="letter" title="Alice Adams">
AA
</div>
</span>
<span class="midwest-avatar size-default theme-red shape-circle" title="You tabbed on an Avatar for Bob Baker">
<div class="letter" title="Bob Baker">
BB
</div>
</span>
<span class="midwest-avatar size-default theme-red shape-circle" title="You tabbed on an Avatar for Carol Clark">
<div class="letter" title="Carol Clark">
CC
</div>
</span>
<span class="midwest-badge size-default theme-primary midwest-group-overflow">
<span class="value">+2 more</span>
</span>
</div>
</div>
<div>
<p class="text-sm text-gray-11 mb-2">size: lg</p>
<div role="group" aria-label="3 avatars" class="midwest-group size-lg gap-overlap midwest-avatar-group">
<span class="midwest-avatar size-lg theme-red shape-circle" title="You tabbed on an Avatar for Alice Adams">
<div class="letter" title="Alice Adams">
AA
</div>
</span>
<span class="midwest-avatar size-lg theme-red shape-circle" title="You tabbed on an Avatar for Bob Baker">
<div class="letter" title="Bob Baker">
BB
</div>
</span>
<span class="midwest-avatar size-lg theme-red shape-circle" title="You tabbed on an Avatar for Carol Clark">
<div class="letter" title="Carol Clark">
CC
</div>
</span>
</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
<div class="flex flex-col gap-6 p-4">
<div>
<p class="text-sm text-gray-11 mb-2">No max (all visible)</p>
<%= render Midwest::AvatarGroupComponent.new(shape: :circle) do |g| %>
<% g.with_avatar(name: 'Alice Adams') %>
<% g.with_avatar(name: 'Bob Baker') %>
<% g.with_avatar(name: 'Carol Clark') %>
<% end %>
</div>
<div>
<p class="text-sm text-gray-11 mb-2">max: 3 with overflow</p>
<%= render Midwest::AvatarGroupComponent.new(max: 3, shape: :circle) do |g| %>
<% g.with_avatar(name: 'Alice Adams') %>
<% g.with_avatar(name: 'Bob Baker') %>
<% g.with_avatar(name: 'Carol Clark') %>
<% g.with_avatar(name: 'Dave Davis') %>
<% g.with_avatar(name: 'Eve Evans') %>
<% end %>
</div>
<div>
<p class="text-sm text-gray-11 mb-2">size: lg</p>
<%= render Midwest::AvatarGroupComponent.new(size: :lg, shape: :circle) do |g| %>
<% g.with_avatar(name: 'Alice Adams') %>
<% g.with_avatar(name: 'Bob Baker') %>
<% g.with_avatar(name: 'Carol Clark') %>
<% end %>
</div>
</div>

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

Accessibility

Figma embed for Avatar/group

Annotate a preview to embed its Figma design here:

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