Skip to content

Dropdown

<vox-dropdown> is a menu button. Entries are plain <a> or <button> children; <hr> draws a separator.

DocumentationModule catalog
html
<vox-dropdown label="Resources">
  <a href="/docs">Documentation</a>
  <a href="/modules">Module catalog</a>
  <hr />
  <button type="button">Copy install command</button>
</vox-dropdown>

Arrow keys move through entries; Escape and outside clicks close the menu.

API

AttributeTypeDefaultDescription
labelstringMenuTrigger button text
openbooleanfalseMenu visibility

Released under the Apache-2.0 License.