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
<form action="/products" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="PwsqH5lTweHai58bsDqlKmNQmT9OG506wmkjOKCKMSwQ2m2WFHnhcG9RalrJALPvPWelpUXKPlLKNYTQ7-4Uqw" autocomplete="off" />
<div>
<label class="Polaris-Choice">
<span class="Polaris-Choice__Control">
<span class="Polaris-Checkbox">
<input name="product[accept]" type="hidden" value="0" autocomplete="off" /><input aria-checked="false" class="Polaris-Checkbox__Input" type="checkbox" value="1" name="product[accept]" id="product_accept" />
<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>
<span class="Polaris-Choice__Label">
Basic checkbox
</span>
</label>
<div class="Polaris-Choice__Descriptions">
<div class="Polaris-Choice__HelpText">
Customers must review their order details before purchasing.
</div>
</div>
</div>
</form>
1
2
3
4
5
6
<%= form_with(model: product, builder: Polaris::FormBuilder) do |form| %>
<%= form.polaris_check_box(:accept,
label: "Basic checkbox",
help_text: "Customers must review their order details before purchasing.",
) %>
<% end %>