x
<div class="Polaris-Card">
<div class="Polaris-ResourceList__ResourceListWrapper">
<ul class="Polaris-ResourceList">
<li data-controller="polaris-resource-item" class="Polaris-ResourceItem__ListItem">
<div class="Polaris-ResourceItem__ItemWrapper">
<div data-action="click->polaris-resource-item#open" style="cursor: default;" class="Polaris-ResourceItem Polaris-ResourceItem--selectable">
<div class="Polaris-ResourceItem__Container">
<div class="Polaris-ResourceItem__Owned Polaris-ResourceItem__OwnedNoMedia">
<div class="Polaris-ResourceItem__Handle">
<div class="Polaris-ResourceItem__CheckboxWrapper">
<div>
<label class="Polaris-Choice Polaris-Choice--labelHidden">
<span class="Polaris-Choice__Control">
<span class="Polaris-Checkbox Polaris-Checkbox--labelHidden">
<input type="checkbox" name="question[]" id="question_" value="answer1" aria-checked="false" class="Polaris-Checkbox__Input" />
<span class="Polaris-Checkbox__Backdrop"></span>
<span class="Polaris-Checkbox__Icon">
<span class="Polaris-Icon">
<svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="m8.315 13.859-3.182-3.417a.506.506 0 0 1 0-.684l.643-.683a.437.437 0 0 1 .642 0l2.22 2.393 4.942-5.327a.436.436 0 0 1 .643 0l.643.684a.504.504 0 0 1 0 .683l-5.91 6.35a.437.437 0 0 1-.642 0"></path></svg>
</span>
</span>
</span>
</span>
</label>
</div>
</div>
</div>
</div>
<div class="Polaris-ResourceItem__Content">
<p>Regular checkbox</p>
</div>
</div>
</div>
</div>
</li>
<li data-controller="polaris-resource-item" class="Polaris-ResourceItem__ListItem">
<div class="Polaris-ResourceItem__ItemWrapper">
<div data-action="click->polaris-resource-item#open" style="cursor: default;" class="Polaris-ResourceItem Polaris-ResourceItem--selectable">
<div class="Polaris-ResourceItem__Container">
<div class="Polaris-ResourceItem__Owned Polaris-ResourceItem__OwnedNoMedia Polaris-ResourceItem__Owned--offset">
<div class="Polaris-ResourceItem__Handle">
<div class="Polaris-ResourceItem__CheckboxWrapper">
<div>
<label class="Polaris-Choice Polaris-Choice--labelHidden">
<span class="Polaris-Choice__Control">
<span class="Polaris-Checkbox Polaris-Checkbox--labelHidden">
<input type="checkbox" name="question[]" id="question_" value="answer2" aria-checked="false" class="Polaris-Checkbox__Input" />
<span class="Polaris-Checkbox__Backdrop"></span>
<span class="Polaris-Checkbox__Icon">
<span class="Polaris-Icon">
<svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="m8.315 13.859-3.182-3.417a.506.506 0 0 1 0-.684l.643-.683a.437.437 0 0 1 .642 0l2.22 2.393 4.942-5.327a.436.436 0 0 1 .643 0l.643.684a.504.504 0 0 1 0 .683l-5.91 6.35a.437.437 0 0 1-.642 0"></path></svg>
</span>
</span>
</span>
</span>
</label>
</div>
</div>
</div>
</div>
<div class="Polaris-ResourceItem__Content">
<p>Offset checkbox</p>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<%= polaris_card(sectioned: false) do %>
<%= polaris_resource_list do %>
<%= polaris_resource_item(selectable: true) do |resource_item| %>
<% resource_item.checkbox(
name: "question[]",
value: "answer1",
) %>
<p>Regular checkbox</p>
<% end %>
<%= polaris_resource_item(selectable: true, offset: true) do |resource_item| %>
<% resource_item.checkbox(
name: "question[]",
value: "answer2",
) %>
<p>Offset checkbox</p>
<% end %>
<% end %>
<% end %>
No notes provided.
No params configured.