x
Security
../../../shared/bundle/ruby/3.4.0/gems/lookbook-2.3.11/app/components/lookbook/viewport/component.html.erb:28:22
26
class="grid bg-white relative -inset-px <%= "grid-cols-[1fr_17px]" if @resize_width %> <%= "grid-rows-[1fr_17px]" if @resize_height %>"
27
style="width: calc(100% + 2px); height: calc(100% + 1px); <%= "max-height: #{@max_height}px;" if @max_height.present? %>">
28
<iframe seamless<%= " id=#{@iframe_id}" if @iframe_id.present? %>
^
29
x-ref="iframe"
30
class="bg-lookbook-page-bg h-full w-full border border-lookbook-divider"
Use static attribute names with dynamic values instead.
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 Successrender(Flowbite::Avatar.new(src: IMAGE_URL)) do |avatar| avatar.with_top_dot(label: "Online", style: :success)end# Dot Top Dangerrender(Flowbite::Avatar.new(shape: :rounded, src: IMAGE_URL)) do |avatar| avatar.with_top_dot(label: "Busy", style: :danger)end# Dot Bottom Successrender(Flowbite::Avatar.new(src: IMAGE_URL)) do |avatar| avatar.with_bottom_dot(label: "Online", style: :success)end# Dot Bottom Dangerrender(Flowbite::Avatar.new(shape: :rounded, src: IMAGE_URL)) do |avatar| avatar.with_bottom_dot(label: "Busy", style: :danger)endShow a colored dot to indicate the status of the user using the
top_dot or bottom_dot slots. Pass a label to describe the status
for screen readers.
No params configured.