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="Delete" href="https://bao.agency" data-controller="polaris-button" class="Polaris-Button Polaris-Button--destructive Polaris-Button--plain">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Delete
</div>
</span>
</a></div>
<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: "Delete", url: "https://bao.agency", destructive: true },
{ content: "Edit", url: "https://bao.agency" }
]
) do %>
<% end %>
<% end %>

Use when a card action applies only to one section and will delete merchant data or be otherwise difficult to recover from.

No params configured.