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
<div class="Polaris-LegacyCard Polaris-LegacyCard--withoutTitle"> <div style="--pc-box-border-color: var(--p-color-border-subdued);--pc-box-border-style: solid;--pc-box-border-block-end-width: var(--p-border-width-1);--pc-box-padding-inline-end-xs: var(--p-space-3);--pc-box-padding-inline-start-xs: var(--p-space-3)" class="Polaris-LegacyTabs__Wrapper Polaris-Box"> <ul role="tablist" class="Polaris-LegacyTabs Polaris-LegacyTabs--fitted"> <li class="Polaris-LegacyTabs__TabContainer" role="presentation"> <button rol="tab" tabindex="0" type="button" class="Polaris-LegacyTabs__Tab Polaris-LegacyTabs__Tab--selected"> <span class="Polaris-LegacyTabs__Title"> All <span class="Polaris-Badge"> <span class="Polaris-Text--root Polaris-Text--bodySm Polaris-Text--regular"> 10+ </span></span> </span> </button></li> <li class="Polaris-LegacyTabs__TabContainer" role="presentation"> <button rol="tab" tabindex="0" type="button" class="Polaris-LegacyTabs__Tab"> <span class="Polaris-LegacyTabs__Title"> Accepts marketing <span class="Polaris-Badge"> <span class="Polaris-Text--root Polaris-Text--bodySm Polaris-Text--regular"> 4 </span></span> </span> </button></li> </ul> </div> <div class="Polaris-LegacyCard__Section"> <div class="Polaris-LegacyCard__SectionHeader"> <h3 class="Polaris-Text--root Polaris-Text--headingSm Polaris-Text--semibold"> All </h3> </div> Tab "All" selected. </div></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<%= polaris_card do |card| %> <% card.with_tabs(fitted: true) do |tabs| %> <% tabs.with_tab(title: "All", active: true) do |tab| %> <% tab.with_badge { "10+" } %> <% end %> <% tabs.with_tab(title: "Accepts marketing") do |tab| %> <% tab.with_badge { "4" } %> <% end %> <% end %> <% card.with_section(title: "All") do %> Tab "All" selected. <% end %><% end %>
No notes provided.
No params configured.