Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div data-buttongroup-segmented="true" class="Polaris-ButtonGroup Polaris-ButtonGroup--segmented">
<div class="Polaris-ButtonGroup__Item"><button type="button" data-controller="polaris-button" class="Polaris-Button Polaris-Button--pressed">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
First button
</div>
</span>
</button></div>
<div class="Polaris-ButtonGroup__Item"><button type="button" data-controller="polaris-button" class="Polaris-Button">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Second button
</div>
</span>
</button></div>
</div>
1
2
3
4
<%= polaris_button_group(segmented: true) do |group| %>
<%= group.with_button(pressed: true) { "First button" } %>
<%= group.with_button { "Second button" } %>
<% end %>