x
<div data-controller="polaris-autocomplete" data-polaris-autocomplete-selected-value="[]">
<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" for="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 [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" name="tags" id="tags" 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>
<div
data-polaris-autocomplete-target="emptyState"
class="Polaris-Autocomplete__EmptyState Polaris--hidden"
>
<div style="text-align: center;">
<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 class="Polaris-TextContainer">Could not find any results</div>
</div>
</div>
<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 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>
<div class="Polaris-Popover__FocusTracker" tabindex="0"></div>
</div>
</div>
</div>
</div>
<%= polaris_autocomplete do |autocomplete| %>
<% autocomplete.text_field(name: :tags, label: "Tags", placeholder: "Search") do |c| %>
<% c.prefix do %>
<%= polaris_icon(name: "SearchMinor") %>
<% end %>
<% end %>
<% autocomplete.empty_state do %>
<div style="text-align: center;">
<%= polaris_icon(name: "SearchMinor") %>
<%= polaris_text_container { "Could not find any results" } %>
</div>
<% end %>
<% autocomplete.option(label: "Rustic", value: "rustic") %>
<% autocomplete.option(label: "Antique", value: "antique") %>
<% autocomplete.option(label: "Vinyl", value: "vinyl") %>
<% autocomplete.option(label: "Vintage", value: "vintage") %>
<% autocomplete.option(label: "Refurbished", value: "refurbished") %>
<% end %>
No notes provided.
No params configured.