x
1
2
3
4
5
6
7
<div class="text-card" data-layout-style="plain-text">
<h3 class="text-card__title">Text Card Title</h3>
<div class="text-card__subtitle">Subtitle</div>
<div class="text-card__body">
<p>This is the body content of the text card.</p>
</div>
</div>
1
2
3
4
5
6
7
clickable = if show_button
build_button(title: "Learn More", style: button_style)
elsif show_link
build_hyper_link(href: "/about", title: "Read more")
end
pattern = build_text_card(title:, subtitle:, body:, layout_style:, clickable:)
render GllComponentLibrary::Patterns::TextCardComponent.new(pattern:)
Param Description Input