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
<!-- Large Input --><div class=""> <label class="block mb-2.5 text-sm font-medium text-heading" for="person_first_name">First name</label> <input class="bg-neutral-secondary-medium border border-default-medium text-heading rounded-base focus:ring-brand focus:border-brand block w-full shadow-xs placeholder:text-body px-3.5 py-3 text-base" type="text" value="John" name="person[first_name]" id="person_first_name" /></div><!-- Default Input --><div class=""> <label class="block mb-2.5 text-sm font-medium text-heading" for="person_first_name">First name</label> <input class="bg-neutral-secondary-medium border border-default-medium text-heading rounded-base focus:ring-brand focus:border-brand block w-full shadow-xs placeholder:text-body px-3 py-2.5 text-sm" type="text" value="John" name="person[first_name]" id="person_first_name" /></div><!-- Small Input --><div class=""> <label class="block mb-2.5 text-sm font-medium text-heading" for="person_first_name">First name</label> <input class="bg-neutral-secondary-medium border border-default-medium text-heading rounded-base focus:ring-brand focus:border-brand block w-full shadow-xs placeholder:text-body px-2.5 py-2 text-sm" type="text" value="John" name="person[first_name]" id="person_first_name" /></div>1
2
3
4
5
6
7
8
# Large Inputrender(Flowbite::InputField::Text.new(attribute: :first_name, form: form, size: :lg))# Default Inputrender(Flowbite::InputField::Text.new(attribute: :first_name, form: form, size: :default))# Small Inputrender(Flowbite::InputField::Text.new(attribute: :first_name, form: form, size: :sm))Use the following examples to apply a small, default or large size for the input fields.
No params configured.