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
button = build_button(title: "Button text", style: button_style) if show_button
hyper_link = build_hyper_link(href: "/about", title: "Learn more") if show_link
resolved_layout_title_size = layout_title_size == "none" ? nil : layout_title_size
pattern = build_text_card(title:, subtitle:, body:, layout_style:, layout_title_size: resolved_layout_title_size, button:, hyper_link:)
render GllComponentLibrary::Patterns::TextCardComponent.new(pattern:)
Param Description Input