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

Bottom navigation 1.2.2

The <velin-bottom-nav> component provides a mobile-first tab bar with safe-area padding. Set current to match data-nav on links (or mark a child with the current attribute). Deutsch: Bottom Nav De

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-bottom-nav current="home" aria-label="Primary">
  <a href="/" data-nav="home">Home</a>
  <a href="/search" data-nav="search">Search</a>
  <a href="/profile" data-nav="profile">Profile</a>
</velin-bottom-nav>

Attributes

AttributeDefaultNotes
currentMatches child data-nav (or dataset.nav) to set aria-current="page"
aria-labelBottom navigationName of the internal navigation landmark

Default slot: links or buttons. Children may also carry the boolean current attribute. If a child has no text and no aria-label, the component may infer a label from data-nav / title.

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-bottom-nav current="home">…</velin-bottom-nav>