Skip to main content
VelinStyle v1.3.0
⌂ Home
  1. Docs
  2. Components
  3. Navigation
  4. Menubar

Menubar 1.2.2

The <velin-menubar> component implements a horizontal menubar with arrow-key navigation between role="menuitem" children. Deutsch: Menueleiste

Maturity: Documented as stable in VelinStyle 1.2.0. Design Intelligence (plan / review / agent meta) is separate and beta / foundation where noted.

When to use

When not

Example

<velin-menubar aria-label="File actions">
  <button type="button" role="menuitem">New</button>
  <button type="button" role="menuitem">Open</button>
  <button type="button" role="menuitem">Save</button>
</velin-menubar>

Attributes

AttributeDefaultNotes
aria-labelMenu barAccessible name on the internal role="menubar"

Default slot: menuitem children. No custom events.

Accessibility

Contract status: pass.

Import

Load the bundle once, then use the custom element in your markup:

<script type="module" src="../../dist/velinstyle-components.min.js"></script>
<velin-menubar aria-label="File">…</velin-menubar>