Docs / Components / BottomNav
ven.js

BottomNav

venjs.bottomNav(props) โ€” a fixed bottom tab bar shown only on mobile (md:hidden).

Signature

venjs.bottomNav(props) โ†’ VNode

Props

PropTypeDescription
itemsVNode | VNode[]Tab items (buttons/links) laid out with justify-around.

Example

venjs.bottomNav({
  items: [
    venjs.button({ onclick: () => router.navigate("/home") }, "๐Ÿ "),
    venjs.button({ onclick: () => router.navigate("/search") }, "๐Ÿ”"),
    venjs.button({ onclick: () => router.navigate("/profile") }, "๐Ÿ‘ค")
  ]
})
The bar is fixed bottom-0 ... flex md:hidden ... z-50 with a safe-area bottom padding (pb-safe). Pair it with the SideBar/AppBar for responsive layouts.