Add a container element with the form-autocomplete class.
There are 2 parts of it, one is form-autocomplete-input, another is menu component.
You may add the is-focused class to form-autocomplete-input to make it appear as focus state.
Spectre.css does NOT include JavaScript code, you will need to implement your JS to interact with the autocomplete.
The autocomplete HTML structure is exampled below.
Bruce Banner
Thor Odinson
Steve Rogers
Tony Stark
Natasha Romanoff
<divclass="form-autocomplete"><!-- autocomplete input container --><divclass="form-autocomplete-input form-input"><!-- autocomplete chips --><divclass="chip"><imgsrc="img/avatar-1.png"class="avatar avatar-sm"alt="Thor Odinson">
Thor Odinson
<ahref="#"class="btn btn-clear"aria-label="Close"role="button"></a></div><!-- autocomplete real input box --><inputclass="form-input"type="text"placeholder="typing here"></div><!-- autocomplete suggestion list --><ulclass="menu"><!-- menu list items --><liclass="menu-item"><ahref="#"><divclass="tile tile-centered"><divclass="tile-icon">
...
</div><divclass="tile-content">
...
</div></div></a></li></ul></div>