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
41
42
43
44
45
46
47
48
49
50
<form action="/products" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="DLHO-7EkU28CuqqiJ-1GxdOxvHPS-QclSP3KCldNxL6zfogWZ7kkbZ-7xjuzWTrHyDRCUuToPKFpGWRXT_83bg" autocomplete="off" />
<div data-controller="polaris-autocomplete" data-polaris-autocomplete-selected-value="[]">
<div data-polaris-autocomplete-target="popover" data-controller="polaris-popover" data-polaris-popover-append-to-body-value="false" data-polaris-popover-active-value="false" data-polaris-popover-placement-value="bottom-start" data-polaris-popover-text-field-activator-value="true" data-polaris-popover-open-class="Polaris-Popover__PopoverOverlay--open" data-polaris-popover-closed-class="Polaris-Popover__PopoverOverlay--closed">
<div data-polaris-popover-target="activator">
<div class="polaris-text-field-wrapper">
<div class="Polaris-Labelled__LabelWrapper">
<div class="Polaris-Label">
<label class="Polaris-Label__Text" for="product_tags">Tags</label>
</div>
</div>
<div class="Polaris-Connected">
<div class="Polaris-Connected__Item Polaris-Connected__Item--primary">
<div data-polaris-text-field-has-value-class="Polaris-TextField--hasValue" data-polaris-text-field-clear-button-hidden-class="Polaris-TextField__Hidden" data-action="click->polaris-autocomplete#toggle click@window->polaris-popover#hide" data-controller="polaris-text-field" class="Polaris-TextField">
<div class="Polaris-TextField__Prefix">
<span class="Polaris-Icon">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 20 20" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M12.323 13.383a5.5 5.5 0 1 1 1.06-1.06l2.897 2.897a.75.75 0 1 1-1.06 1.06l-2.897-2.897Zm.677-4.383a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"></path></svg>
</span>
</div>
<input placeholder="Search" data-polaris-text-field-target="input" data-polaris-autocomplete-target="input" data-action="polaris-text-field#syncValue" class="Polaris-TextField__Input" type="text" name="product[tags]" id="product_tags" />
<div class="Polaris-TextField__Backdrop"></div>
</div>
</div>
</div>
</div>
<input data-polaris-autocomplete-target="hiddenInput" autocomplete="off" type="hidden" name="product[tags]" id="product_tags" />
</div>
<div data-polaris-popover-target="popover" class="Polaris-PositionedOverlay Polaris-Popover__PopoverOverlay Polaris-Popover__PopoverOverlay--closed">
<div class="Polaris-Popover Polaris-Popover--fullWidth">
<div class="Polaris-Popover__FocusTracker" tabindex="0"></div>
<div class="Polaris-Popover__ContentContainer">
<div tabindex="-1" class="Polaris-Popover__Content">
<div data-polaris-scrollable-shadow-value="true" data-polaris-scrollable-top-shadow-class="Polaris-Scrollable--hasTopShadow" data-polaris-scrollable-bottom-shadow-class="Polaris-Scrollable--hasBottomShadow" data-controller="polaris-scrollable" style="" class="Polaris-Popover__Pane Polaris-Scrollable Polaris-Scrollable--vertical">
<span data-polaris-scrollable-target="topEdge"></span>
<ul data-polaris-autocomplete-target="results" data-controller="polaris-option-list" data-polaris-option-list-selected-class="Polaris-OptionList-Option--select" style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-2);--pc-box-padding-block-start-xs: var(--p-space-2);--pc-box-padding-inline-end-xs: var(--p-space-2);--pc-box-padding-inline-start-xs: var(--p-space-2)" class="Polaris-Box Polaris-Box--listReset">
<li data-polaris-autocomplete-target="option" data-label="Rustic" tabindex="-1" class="Polaris-OptionList-Option"><label class="Polaris-OptionList-Option__SingleSelectOption" data-polaris-option-list-target="radioButton" data-action="click->polaris-option-list#update"><input type="radio" id="_rustic" value="rustic" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris--hidden" />Rustic</label></li>
<li data-polaris-autocomplete-target="option" data-label="Antique" tabindex="-1" class="Polaris-OptionList-Option"><label class="Polaris-OptionList-Option__SingleSelectOption" data-polaris-option-list-target="radioButton" data-action="click->polaris-option-list#update"><input type="radio" id="_antique" value="antique" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris--hidden" />Antique</label></li>
<li data-polaris-autocomplete-target="option" data-label="Vinyl" tabindex="-1" class="Polaris-OptionList-Option"><label class="Polaris-OptionList-Option__SingleSelectOption" data-polaris-option-list-target="radioButton" data-action="click->polaris-option-list#update"><input type="radio" id="_vinyl" value="vinyl" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris--hidden" />Vinyl</label></li>
<li data-polaris-autocomplete-target="option" data-label="Vintage" tabindex="-1" class="Polaris-OptionList-Option"><label class="Polaris-OptionList-Option__SingleSelectOption" data-polaris-option-list-target="radioButton" data-action="click->polaris-option-list#update"><input type="radio" id="_vintage" value="vintage" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris--hidden" />Vintage</label></li>
<li data-polaris-autocomplete-target="option" data-label="Refurbished" tabindex="-1" class="Polaris-OptionList-Option"><label class="Polaris-OptionList-Option__SingleSelectOption" data-polaris-option-list-target="radioButton" data-action="click->polaris-option-list#update"><input type="radio" id="_refurbished" value="refurbished" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris--hidden" />Refurbished</label></li>
</ul>
<span data-polaris-scrollable-target="bottomEdge"></span>
</div>
</div>
</div>
<div class="Polaris-Popover__FocusTracker" tabindex="0"></div>
</div>
</div>
</div>
</div>
</form>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%= form_with(model: product, builder: Polaris::FormBuilder) do |form| %>
<%= form.polaris_autocomplete(:tags) do |autocomplete| %>
<% autocomplete.with_text_field(label: "Tags", placeholder: "Search") do |c| %>
<% c.with_prefix do %>
<%= polaris_icon(name: "SearchIcon") %>
<% end %>
<% end %>
<% autocomplete.with_option(label: "Rustic", value: "rustic") %>
<% autocomplete.with_option(label: "Antique", value: "antique") %>
<% autocomplete.with_option(label: "Vinyl", value: "vinyl") %>
<% autocomplete.with_option(label: "Vintage", value: "vintage") %>
<% autocomplete.with_option(label: "Refurbished", value: "refurbished") %>
<% end %>
<% end %>