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
<div class="Polaris-Page"> <div style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-4);--pc-box-padding-block-end-md: var(--p-space-5);--pc-box-padding-block-start-xs: var(--p-space-4);--pc-box-padding-block-start-md: var(--p-space-5);--pc-box-padding-inline-end-xs: var(--p-space-4);--pc-box-padding-inline-end-sm: var(--p-space-0);--pc-box-padding-inline-start-xs: var(--p-space-4);--pc-box-padding-inline-start-sm: var(--p-space-0);position: relative" class="Polaris-Box"> <div class="Polaris-Page-Header--mobileView Polaris-Page-Header--mediumTitle Polaris-Page-Header--noBreadcrumbs"> <div class="Polaris-Page-Header__Row"> <div class="Polaris-Page-Header__TitleWrapper"> <div class="Polaris-Header-Title__TitleAndSubtitleWrapper"> <h1 class="Polaris-Header-Title">Page Title</h1> </div> </div> <div class="Polaris-Page-Header__RightAlign"> <div class="Polaris-Page-Header__Actions"> <div class="Polaris-Page-Header__PrimaryActionWrapper"> <button type="button" data-controller="paper-button" class="Polaris-Button"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Save </div> <div class="Polaris-Button__Icon"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M13.098 8h-6.196c-.751 0-1.172.754-.708 1.268l3.098 3.432c.36.399 1.055.399 1.416 0l3.098-3.433c.464-.513.043-1.267-.708-1.267Z"></path></svg> </span> </div> </span> </button> </div> </div> </div> </div> </div> </div> <div class=""> <div class="Polaris-LegacyCard"> <div class="Polaris-LegacyCard__Header"> <h2 class="Polaris-Text--root Polaris-Text--headingMd Polaris-Text--semibold"> Credit card </h2> </div> <div class="Polaris-LegacyCard__Section"> <p>Credit card information</p> </div> </div> </div></div>
1
2
3
4
5
6
7
8
9
<%= paper_page(title: "Page Title") do |page| %> <% page.with_custom_primary_action do %> <%= paper_button(disclosure: true) { "Save" } %> <% end %> <%= paper_card(title: "Credit card") do %> <p>Credit card information</p> <% end %><% end %>
No notes provided.
No params configured.