x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<div class="Polaris-LegacyCard Polaris-LegacyCard--withoutTitle"> <div class="Polaris-LegacyCard__Header"> <div class="Polaris-LegacyStack Polaris-LegacyStack--alignmentTrailing"> <div class="Polaris-LegacyStack__Item Polaris-LegacyStack__Item--fill"> <h2 class="Polaris-Text--root Polaris-Text--headingMd Polaris-Text--semibold"> Staff accounts </h2> </div> <div class="Polaris-LegacyStack__Item"> <div class="Polaris-ButtonGroup"> <div class="Polaris-ButtonGroup__Item Polaris-ButtonGroup__Item--plain"><a content="Preview" href="https://bao.agency" data-controller="polaris-button" class="Polaris-Button Polaris-Button--plain"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Preview </div> </span> </a></div> </div> </div> <div class="Polaris-LegacyStack__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button Polaris-Button--plain"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> <p>Separate</p> </div> </span> </button> </div> </div> </div> <div class="Polaris-LegacyCard__Section"> <ul> <li>Felix Crafford</li> <li>Ezequiel Manno</li> </ul> </div></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<%= polaris_card do |card| %> <% card.with_header(title: "Staff accounts", actions: [{ content: "Preview", url: "https://bao.agency" }]) do %> <%= polaris_button(plain: true) do %> <p>Separate</p> <% end %> <% end %> <% card.with_section do %> <ul> <li>Felix Crafford</li> <li>Ezequiel Manno</li> </ul> <% end %><% end %>
Use to be able to use custom elements as header content.
No params configured.