x
1
2
3
4
5
<div class='gl-card'>
<div class='gl-card-body'>
<p>Every card has a body.</p>
</div>
</div>
1
2
3
4
5
6
7
8
9
render(Pajamas::CardComponent.new) do |c|
c.with_header { header } if header
c.with_body do
content_tag(:p, body)
end
c.with_footer { footer } if footer
end
Param Description Input