x
<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>
<%= polaris_button_group(segmented: true) do |group| %>
<%= group.button(pressed: true) { "First button" } %>
<%= group.button { "Second button" } %>
<% end %>
No notes provided.
No params configured.