x
<div class="Polaris-Card">
<div class="Polaris-ResourceList__ResourceListWrapper">
<ul class="Polaris-ResourceList">
<li data-controller="polaris-resource-item" class="Polaris-ResourceItem__ListItem">
<div class="Polaris-ResourceItem__ItemWrapper">
<div data-action="click->polaris-resource-item#open" style="cursor: default;" class="Polaris-ResourceItem">
<a
class="Polaris-ResourceItem__Link"
tabindex="0"
href="customers/341"
data-polaris-unstyled="true"
data-polaris-resource-item-target="link"></a>
<div class="Polaris-ResourceItem__Container">
<div class="Polaris-ResourceItem__Owned">
<div class="Polaris-ResourceItem__Media">
<span aria-label="Mae Jemison" role="img" class="Polaris-Avatar Polaris-Avatar--sizeMedium">
<span class="Polaris-Avatar__Initials">
<svg class="Polaris-Avatar__Svg" viewBox="0 0 40 40">
<path fill="currentColor" d="M8.28 27.5A14.95 14.95 0 0120 21.8c4.76 0 8.97 2.24 11.72 5.7a14.02 14.02 0 01-8.25 5.91 14.82 14.82 0 01-6.94 0 14.02 14.02 0 01-8.25-5.9zM13.99 12.78a6.02 6.02 0 1112.03 0 6.02 6.02 0 01-12.03 0z"></path>
</svg>
</span>
</span>
</div>
</div>
<div class="Polaris-ResourceItem__Content">
<h3>
<span class="Polaris-TextStyle--variationStrong">Mae Jemison</span>
</h3>
<div>Decatur, USA</div>
</div>
</div>
</div>
</div>
</li>
<li data-controller="polaris-resource-item" class="Polaris-ResourceItem__ListItem">
<div class="Polaris-ResourceItem__ItemWrapper">
<div data-action="click->polaris-resource-item#open" style="cursor: default;" class="Polaris-ResourceItem">
<a
class="Polaris-ResourceItem__Link"
tabindex="0"
href="customers/256"
data-polaris-unstyled="true"
data-polaris-resource-item-target="link"></a>
<div class="Polaris-ResourceItem__Container">
<div class="Polaris-ResourceItem__Owned">
<div class="Polaris-ResourceItem__Media">
<span aria-label="Ellen Ochoa" role="img" class="Polaris-Avatar Polaris-Avatar--sizeMedium">
<span class="Polaris-Avatar__Initials">
<svg class="Polaris-Avatar__Svg" viewBox="0 0 40 40">
<path fill="currentColor" d="M8.28 27.5A14.95 14.95 0 0120 21.8c4.76 0 8.97 2.24 11.72 5.7a14.02 14.02 0 01-8.25 5.91 14.82 14.82 0 01-6.94 0 14.02 14.02 0 01-8.25-5.9zM13.99 12.78a6.02 6.02 0 1112.03 0 6.02 6.02 0 01-12.03 0z"></path>
</svg>
</span>
</span>
</div>
</div>
<div class="Polaris-ResourceItem__Content">
<h3>
<span class="Polaris-TextStyle--variationStrong">Ellen Ochoa</span>
</h3>
<div>Los Angeles, USA</div>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<% items = [
{
url: 'customers/341',
name: 'Mae Jemison',
location: 'Decatur, USA',
},
{
url: 'customers/256',
name: 'Ellen Ochoa',
location: 'Los Angeles, USA',
},
] %>
<%= polaris_card(sectioned: false) do %>
<%= polaris_resource_list do %>
<% items.each do |item| %>
<%= polaris_resource_item(url: item[:url]) do |c| %>
<% c.media do %>
<%= polaris_avatar(customer: true, name: item[:name]) %>
<% end %>
<h3>
<%= polaris_text_style(variation: :strong) { item[:name] } %>
</h3>
<div><%= item[:location] %></div>
<% end %>
<% end %>
<% end %>
<% end %>
No notes provided.
No params configured.