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
| Prop | Type | Description |
|---|---|---|
items | VNode | 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.