x
<div data-controller="polaris-autocomplete" data-polaris-autocomplete-selected-value="[&quot;antique&quot;,&quot;vintage&quot;]">
<div data-polaris-autocomplete-target="popover" data-controller="polaris-popover" data-polaris-popover-active-value="false" data-polaris-popover-placement-value="auto-start" 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="">
<div class="Polaris-Labelled__LabelWrapper">
<div class="Polaris-Label">
<label class="Polaris-Label__Text">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 [email protected]>polaris-popover#hide" data-controller="polaris-text-field" class="Polaris-TextField">
<div class="Polaris-TextField__Prefix">
<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 12a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm9.707 4.293-4.82-4.82A5.968 5.968 0 0 0 14 8 6 6 0 0 0 2 8a6 6 0 0 0 6 6 5.968 5.968 0 0 0 3.473-1.113l4.82 4.82a.997.997 0 0 0 1.414 0 .999.999 0 0 0 0-1.414z"></path></svg>
</span>
</div>
<input type="text" id="" placeholder="Search" data-polaris-text-field-target="input" data-polaris-autocomplete-target="input" data-action="polaris-text-field#syncValue" class="Polaris-TextField__Input" />
<div class="Polaris-TextField__Backdrop"></div>
</div>
</div>
</div>
</div>
</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 style="">
<div class="Polaris-Popover__Wrapper">
<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" class="Polaris-OptionList">
<li>
<p class="Polaris-OptionList__Title">Suggested tags</p>
<ul class="Polaris-OptionList__Options">
<li data-polaris-autocomplete-target="option" data-label="Rustic" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label">
<div class="Polaris-OptionList-Option__Checkbox">
<div class="Polaris-OptionList-Checkbox">
<input type="checkbox" id="" value="rustic" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-OptionList-Checkbox__Input" />
<div class="Polaris-OptionList-Checkbox__Backdrop"></div>
<div class="Polaris-OptionList-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="m7.293 14.707-3-3a.999.999 0 1 1 1.414-1.414l2.236 2.236 6.298-7.18a.999.999 0 1 1 1.518 1.3l-7 8a1 1 0 0 1-.72.35 1.017 1.017 0 0 1-.746-.292z"></path></svg>
</span>
</div>
</div>
</div>
Rustic
</label>
</li>
<li data-polaris-autocomplete-target="option" data-label="Antique" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label">
<div class="Polaris-OptionList-Option__Checkbox">
<div class="Polaris-OptionList-Checkbox">
<input type="checkbox" id="" value="antique" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-OptionList-Checkbox__Input" />
<div class="Polaris-OptionList-Checkbox__Backdrop"></div>
<div class="Polaris-OptionList-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="m7.293 14.707-3-3a.999.999 0 1 1 1.414-1.414l2.236 2.236 6.298-7.18a.999.999 0 1 1 1.518 1.3l-7 8a1 1 0 0 1-.72.35 1.017 1.017 0 0 1-.746-.292z"></path></svg>
</span>
</div>
</div>
</div>
Antique
</label>
</li>
<li data-polaris-autocomplete-target="option" data-label="Vinyl" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label">
<div class="Polaris-OptionList-Option__Checkbox">
<div class="Polaris-OptionList-Checkbox">
<input type="checkbox" id="" value="vinyl" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-OptionList-Checkbox__Input" />
<div class="Polaris-OptionList-Checkbox__Backdrop"></div>
<div class="Polaris-OptionList-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="m7.293 14.707-3-3a.999.999 0 1 1 1.414-1.414l2.236 2.236 6.298-7.18a.999.999 0 1 1 1.518 1.3l-7 8a1 1 0 0 1-.72.35 1.017 1.017 0 0 1-.746-.292z"></path></svg>
</span>
</div>
</div>
</div>
Vinyl
</label>
</li>
<li data-polaris-autocomplete-target="option" data-label="Vintage" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label">
<div class="Polaris-OptionList-Option__Checkbox">
<div class="Polaris-OptionList-Checkbox">
<input type="checkbox" id="" value="vintage" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-OptionList-Checkbox__Input" />
<div class="Polaris-OptionList-Checkbox__Backdrop"></div>
<div class="Polaris-OptionList-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="m7.293 14.707-3-3a.999.999 0 1 1 1.414-1.414l2.236 2.236 6.298-7.18a.999.999 0 1 1 1.518 1.3l-7 8a1 1 0 0 1-.72.35 1.017 1.017 0 0 1-.746-.292z"></path></svg>
</span>
</div>
</div>
</div>
Vintage
</label>
</li>
<li data-polaris-autocomplete-target="option" data-label="Refurbished" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label">
<div class="Polaris-OptionList-Option__Checkbox">
<div class="Polaris-OptionList-Checkbox">
<input type="checkbox" id="" value="refurbished" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-OptionList-Checkbox__Input" />
<div class="Polaris-OptionList-Checkbox__Backdrop"></div>
<div class="Polaris-OptionList-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="m7.293 14.707-3-3a.999.999 0 1 1 1.414-1.414l2.236 2.236 6.298-7.18a.999.999 0 1 1 1.518 1.3l-7 8a1 1 0 0 1-.72.35 1.017 1.017 0 0 1-.746-.292z"></path></svg>
</span>
</div>
</div>
</div>
Refurbished
</label>
</li>
</ul>
</li>
</ul>
<span data-polaris-scrollable-target="bottomEdge"></span>
</div>
</div>
</div>
</div>
<div class="Polaris-Popover__FocusTracker" tabindex="0"></div>
</div>
</div>
</div>
</div>
<%= polaris_autocomplete(
multiple: true,
selected: ["antique", "vintage"],
) do |autocomplete| %>
<% autocomplete.text_field(label: "Tags", placeholder: "Search") do |c| %>
<% c.prefix do %>
<%= polaris_icon(name: "SearchMinor") %>
<% end %>
<% end %>
<% autocomplete.section(title: "Suggested tags") do |section| %>
<% section.option(label: "Rustic", value: "rustic") %>
<% section.option(label: "Antique", value: "antique") %>
<% section.option(label: "Vinyl", value: "vinyl") %>
<% section.option(label: "Vintage", value: "vintage") %>
<% section.option(label: "Refurbished", value: "refurbished") %>
<% end %>
<% end %>
No notes provided.
No params configured.