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
<div class="Polaris-Card"> <div class="Polaris-Card__Section"> <div class="Polaris-EmptyState Polaris-EmptyState--fullWidth"> <div class="Polaris-EmptyState__Section"> <div class="Polaris-EmptyState__DetailsContainer"> <div class="Polaris-EmptyState__Details"> <div class="Polaris-TextContainer"> <p class="Polaris-DisplayText Polaris-DisplayText--sizeSmall"> Upload a file to get started </p> <div class="Polaris-EmptyState__Content"> <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> </div> </div> <div class="Polaris-EmptyState__Actions"> <div class="Polaris-Stack Polaris-Stack--alignmentCenter Polaris-Stack--distributionCenter Polaris-Stack--spacingTight"> <div class="Polaris-Stack__Item"> <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 class="Polaris-EmptyState__ImageContainer"> <img src="https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png" role="presentation" alt="" class="Polaris-EmptyState__Image"> </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.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.