List Box
Present a selectable collection with arrow-key navigation.
- Atlas
- Beacon
- Cobalt
HTML
<div class="rl-scope" data-rl-scope>
<ul class="rl-listbox" role="listbox" aria-label="Workspace" data-rl-listbox>
<li class="rl-option" id="listbox-atlas" role="option" aria-selected="true" tabindex="0">Atlas</li>
<li class="rl-option" id="listbox-beacon" role="option" aria-selected="false" tabindex="-1">Beacon</li>
<li class="rl-option" id="listbox-cobalt" role="option" aria-selected="false" tabindex="-1">Cobalt</li>
</ul>
</div>Selection state is written to aria-selected. Use a native select if the form needs a submitted value.
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>