Autocomplete
Filter a short list of pinned workspaces already on the page.
- Studio North
- Atlas
- Beacon
- No matches
HTML
<div class="rl-scope" data-rl-scope>
<div class="rl-field">
<label class="rl-label" for="shortlist">Pinned workspace</label>
<div class="rl-combo" data-rl-combo>
<input class="rl-input" id="shortlist" name="q" type="text" role="combobox"
aria-expanded="false" aria-controls="shortlist-options" aria-autocomplete="list"
autocomplete="off" placeholder="Find a workspace…">
<ul class="rl-listbox rl-combo-list" id="shortlist-options" role="listbox" aria-label="Workspaces" hidden>
<li class="rl-option" id="shortlist-studio-north" role="option" aria-selected="false">Studio North</li>
<li class="rl-option" id="shortlist-atlas" role="option" aria-selected="false">Atlas</li>
<li class="rl-option" id="shortlist-beacon" role="option" aria-selected="false">Beacon</li>
<li class="rl-option" role="option" aria-disabled="true" data-rl-empty-option hidden>No matches</li>
</ul>
<span class="rl-description" data-rl-combo-status role="status"></span>
</div>
</div>
</div>Type to narrow the three choices. Use the arrow keys to move through matches and Enter to choose a workspace.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<script defer src="/mero.js"></script>