x
<div class="Polaris-Card">
<div class="Polaris-Card__Header">
<h2 class="Polaris-Heading">Customer</h2>
</div>
<div class="Polaris-Card__Section">
<p>John Smith</p>
</div>
<div class="Polaris-Card__Section">
<div class="Polaris-Card__SectionHeader">
<div class="Polaris-Stack Polaris-Stack--alignmentTrailing">
<div class="Polaris-Stack__Item Polaris-Stack__Item--fill">
<h3 class="Polaris-Subheading">Contact information</h3>
</div>
<div class="Polaris-Stack__Item">
<div class="Polaris-ButtonGroup">
<div class="Polaris-ButtonGroup__Item Polaris-ButtonGroup__Item--plain"><a content="Edit" href="https://bao.agency" data-controller="polaris-button" class="Polaris-Button Polaris-Button--plain">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Edit
</div>
</span>
</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
<%= polaris_card(title: "Customer") do |card| %>
<% card.section do %>
<p>John Smith</p>
<% end %>
<% card.section(
title: "Contact information",
actions: [{ content: "Edit", url: "https://bao.agency" }]
) do %>
<% end %>
<% end %>

Use when your card section has actions that apply only to that section.

No params configured.