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
<!-- Basic --><div class="p-6 bg-neutral-primary-soft border border-default rounded-base shadow-xs"> <h5 class="mb-2 text-2xl font-semibold tracking-tight text-heading"></h5> <div class="font-normal text-body">Use the following simple card component with a title and description.</div></div><!-- With Title Argument --><div class="p-6 bg-neutral-primary-soft border border-default rounded-base shadow-xs"> <h5 class="mb-2 text-2xl font-semibold tracking-tight text-heading">Card Title</h5> <div class="font-normal text-body">This card includes a title with the default styling.</div></div><!-- With Title Slot --><div class="p-6 bg-neutral-primary-soft border border-default rounded-base shadow-xs"> <h1 class="text-3xl">This title replaces the entire title element</h1> <div class="font-normal text-body">Use the title slot to control all aspects of the title element</div></div>1
2
3
4
5
6
7
8
9
10
11
12
13
# Basicrender(Flowbite::Card.new) { "Use the following simple card component with a title and description." }# With Title Argumentrender(Flowbite::Card.new(title: {content: "Card Title"})) do "This card includes a title with the default styling."end# With Title Slotrender(Flowbite::Card.new) do |component| component.with_title { "<h1 class=\"text-3xl\">This title replaces the entire title element</h1>".html_safe } "Use the title slot to control all aspects of the title element"endUse the following simple card component with a title and description.
No params configured.