Previews

No matching results.

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
<div class="Polaris-LegacyCard Polaris-LegacyCard--withoutTitle">
<div class="Polaris-LegacyCard__Section">
<div class="Polaris-SettingAction">
<div class="Polaris-SettingAction__Setting">
This setting is <span class="Polaris-Text--root Polaris-Text--bodyMd Polaris-Text--semibold">
deactivated
</span>.
</div>
<div class="Polaris-SettingAction__Action">
<button type="button" data-controller="polaris-button" class="Polaris-Button Polaris-Button--primary">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Activate
</div>
</span>
</button>
</div>
</div>
</div>
</div>
<div class="Polaris-LegacyCard Polaris-LegacyCard--withoutTitle">
<div class="Polaris-LegacyCard__Section">
<div class="Polaris-SettingAction">
<div class="Polaris-SettingAction__Setting">
This setting is <span class="Polaris-Text--root Polaris-Text--bodyMd Polaris-Text--semibold">
activated
</span>.
</div>
<div class="Polaris-SettingAction__Action">
<button type="button" data-controller="polaris-button" class="Polaris-Button">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Deactivate
</div>
</span>
</button>
</div>
</div>
</div>
</div>
1
2
3
4
5
6
7
8
9
<%= polaris_setting_toggle(enabled: false) do |toggle| %>
<% toggle.with_action { "Activate" } %>
This setting is <%= polaris_text_strong { "deactivated" } %>.
<% end %>
<%= polaris_setting_toggle(enabled: true) do |toggle| %>
<% toggle.with_action { "Deactivate" } %>
This setting is <%= polaris_text_strong { "activated" } %>.
<% end %>