x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- Dot Top Success -->
<div class="relative flex h-fit w-fit">
<img alt="" class="w-10 h-10 rounded-full" src="https://flowbite.com/docs/images/people/profile-picture-5.jpg">
<span class="top-0 left-7 absolute w-3.5 h-3.5 bg-success border-2 border-buffer rounded-full"><span class="sr-only">Online</span></span>
</div>
<!-- Dot Top Danger -->
<div class="relative flex h-fit w-fit">
<img alt="" class="w-10 h-10 rounded-base" src="https://flowbite.com/docs/images/people/profile-picture-5.jpg">
<span class="top-0 left-7 absolute w-3.5 h-3.5 bg-danger border-2 border-buffer rounded-full"><span class="sr-only">Busy</span></span>
</div>
<!-- Dot Bottom Success -->
<div class="relative flex h-fit w-fit">
<img alt="" class="w-10 h-10 rounded-full" src="https://flowbite.com/docs/images/people/profile-picture-5.jpg">
<span class="bottom-0 left-7 absolute w-3.5 h-3.5 bg-success border-2 border-buffer rounded-full"><span class="sr-only">Online</span></span>
</div>
<!-- Dot Bottom Danger -->
<div class="relative flex h-fit w-fit">
<img alt="" class="w-10 h-10 rounded-base" src="https://flowbite.com/docs/images/people/profile-picture-5.jpg">
<span class="bottom-0 left-7 absolute w-3.5 h-3.5 bg-danger border-2 border-buffer rounded-full"><span class="sr-only">Busy</span></span>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Dot Top Success
render(Flowbite::Avatar.new(src: IMAGE_URL)) do |avatar|
avatar.with_top_dot(label: "Online", style: :success)
end
# Dot Top Danger
render(Flowbite::Avatar.new(shape: :rounded, src: IMAGE_URL)) do |avatar|
avatar.with_top_dot(label: "Busy", style: :danger)
end
# Dot Bottom Success
render(Flowbite::Avatar.new(src: IMAGE_URL)) do |avatar|
avatar.with_bottom_dot(label: "Online", style: :success)
end
# Dot Bottom Danger
render(Flowbite::Avatar.new(shape: :rounded, src: IMAGE_URL)) do |avatar|
avatar.with_bottom_dot(label: "Busy", style: :danger)
end