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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<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"> Sales </h2> </div> <div class="Polaris-LegacyStack__Item"> <div class="Polaris-ButtonGroup"> <div class="Polaris-ButtonGroup__Item Polaris-ButtonGroup__Item--plain"><a content="Total sales" href="https://bao.agency" data-controller="polaris-button" class="Polaris-Button Polaris-Button--plain"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Total sales </div> </span> </a></div> </div> </div> </div> </div> <div class="Polaris-LegacyCard__Section"> <div class="Polaris-TextContainer"> You can use sales reports to see information about your customers’ orders based on criteria such as sales over time, by channel, or by staff. </div> </div> <div class="Polaris-LegacyCard__Section"> <div class="Polaris-LegacyCard__SectionHeader"> <h3 class="Polaris-Text--root Polaris-Text--headingSm Polaris-Text--semibold"> Total sales breakdown </h3> </div> <ul> <li>Felix Crafford</li> <li>Ezequiel Manno</li> </ul> </div> <div class="Polaris-LegacyCard__Section Polaris-LegacyCard__Section--subdued"> <div class="Polaris-LegacyCard__SectionHeader"> <h3 class="Polaris-Text--root Polaris-Text--headingSm Polaris-Text--semibold"> Deactivated reports </h3> </div> <ul> <li>Felix Crafford</li> <li>Ezequiel Manno</li> </ul> </div> <div class="Polaris-LegacyCard__Section"> <div class="Polaris-LegacyCard__SectionHeader"> <h3 class="Polaris-Text--root Polaris-Text--headingSm Polaris-Text--semibold"> Note </h3> </div> <div class="Polaris-TextContainer"> The sales reports are available only if your store is on the Shopify plan or higher. </div> </div> <div class="Polaris-LegacyCard__Section"> <div class="Polaris-LegacyCard__Section"> <div class="Polaris-TextContainer"> You can use sales reports to see information about your customers’ orders based on criteria such as sales over time, by channel, or by staff. </div> </div> </div> <div class="Polaris-LegacyCard__Footer"> <div class="Polaris-ButtonGroup"> <div class="Polaris-ButtonGroup__Item"> <a href="#" data-controller="polaris-button" class="Polaris-Button"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Dismiss </div> </span> </a> </div> <div class="Polaris-ButtonGroup__Item"> <a href="#" data-controller="polaris-button" class="Polaris-Button Polaris-Button--primary"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Export report </div> </span> </a> </div> </div> </div></div>
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
<%= polaris_card do |card| %> <% card.with_header(title: "Sales", actions: [{ content: "Total sales", url: "https://bao.agency" }]) %> <%= card.with_section do %> <%= polaris_text_container do %> You can use sales reports to see information about your customers’ orders based on criteria such as sales over time, by channel, or by staff. <% end %> <% end %> <% card.with_section(title: "Total sales breakdown") do %> <ul> <li>Felix Crafford</li> <li>Ezequiel Manno</li> </ul> <% end %> <% card.with_section(title: "Deactivated reports", subdued: true) do %> <ul> <li>Felix Crafford</li> <li>Ezequiel Manno</li> </ul> <% end %> <% card.with_section(title: "Note") do %> <%= polaris_text_container do %> The sales reports are available only if your store is on the Shopify plan or higher. <% end %> <% end %> <% card.with_primary_footer_action(url: "#") { "Export report" } %> <% card.with_secondary_footer_action(url: "#") { "Dismiss" } %><% end %>
Use as a broad example that includes most props available to card.
No params configured.