Skip to main content
VelinStyle v0.8.0
⌂ Home
  1. Docs
  2. Components
  3. Bottom navigation

Bottom navigation

The <velin-bottom-nav> component provides a mobile-first tab bar with safe-area padding. Set current to match data-nav on links. Added in 0.7.5.

Example

<velin-bottom-nav current="home">
  <a href="/" data-nav="home" current>Home</a>
  <a href="/search" data-nav="search">Search</a>
</velin-bottom-nav>

Accessibility

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>…</velin-bottom-nav>

Theme wählen