Zum Hauptinhalt springen
VelinStyle v1.2.0
⌂ Startseite
  1. Docs
  2. Komponenten
  3. Bottom Navigation

Bottom Navigation 1.2.0

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). English: Bottom Nav

Reifegrad: In VelinStyle 1.2.0 als stabil dokumentiert. Design Intelligence (Plan / Review / Agent-Meta) ist separat und, wo angegeben, Beta / Grundlage.

Wann verwenden

Wann nicht verwenden

Beispiel

<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>

Attribut

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

Standard 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.

Barrierefreiheit

Contract status: pass.

Import

Lade das Bundle einmal und nutze dann das Custom Element in deinem Markup:

<script type="module" src="../../dist/velinstyle-components.min.js"></script>
<velin-bottom-nav current="home">…</velin-bottom-nav>