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__Section"> <div style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-16);--pc-box-padding-block-start-xs: var(--p-space-5);--pc-box-padding-inline-end-xs: var(--p-space-0);--pc-box-padding-inline-start-xs: var(--p-space-0)" class="Polaris-Box"> <div style="--pc-vertical-stack-align: ;--pc-vertical-stack-inline-align: center;--pc-vertical-stack-order: column" class="Polaris-VerticalStack"> <img src="https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png" role="presentation" class=""> <div style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-max-width: 100%" class="Polaris-Box"> <div style="--pc-vertical-stack-align: ;--pc-vertical-stack-inline-align: center;--pc-vertical-stack-order: column" class="Polaris-VerticalStack"> <div style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-6)" class="Polaris-Box"> <div style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-4)" class="Polaris-Box"> <p class="Polaris-Text--root Polaris-Text--headingXl Polaris-Text--center Polaris-Text--semibold Polaris-Text--block"> Upload a file to get started </p> </div> <span class="Polaris-Text--root Polaris-Text--bodyMd Polaris-Text--center Polaris-Text--subdued Polaris-Text--regular Polaris-Text--block"> <p> You can use the Files section to upload images, videos, and other documents. This example shows the content with a centered layout and full width. </p> </span></div> <div style="--pc-horizontal-stack-align: center;--pc-horizontal-stack-wrap: wrap;--pc-horizontal-stack-gap-xs: var(--p-space-2)" class="Polaris-HorizontalStack"> <button type="button" data-controller="polaris-button" class="Polaris-Button Polaris-Button--primary"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Upload files </div> </span> </button> </div> </div> </div> </div> </div> </div></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%= polaris_card do %> <%= polaris_empty_state( full_width: true, heading: "Upload a file to get started", image: "https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png", ) do |state| %> <% state.with_primary_action { "Upload files" } %> <p> You can use the Files section to upload images, videos, and other documents. This example shows the content with a centered layout and full width. </p> <% end %><% end %>
No notes provided.
No params configured.