Veil UI
Components

Mobile Bottom Nav

A thumb-friendly mobile tab bar with icons, labels, badges and a floating variant.

Installation

$ npx veil-ui@latest add mobile-bottom-nav

Usage

import { Home, Search, User } from "lucide-react";
import { MobileBottomNav } from "@/components/ui/mobile-bottom-nav";

<MobileBottomNav
  items={[
    { label: "Home", icon: Home, href: "/", active: true },
    { label: "Search", icon: Search, href: "/search" },
    { label: "Account", icon: User, href: "/account" },
  ]}
/>;

The bar reserves env(safe-area-inset-bottom) so labels stay clear of the iOS home indicator. Pass onSelect and omit href to control navigation yourself.

Examples

Basic

Badges

Floating

API reference

PropTypeDefaultDescription
items{ label; icon; href?; active?; badge? }[]—Destinations, each with a required lucide icon.
variant"default" | "floating"—Default pins the bar to the bottom edge; floating renders a rounded, elevated pill.
onSelect(item) => void—Called instead of navigating when an item is clicked.
...propsReact.ComponentProps<"nav">—All native nav attributes.

Accessibility

  • Renders a labelled <nav> landmark with a Bottom accessible name.
  • The active destination receives aria-current="page".
  • Every destination is a native link or button, so it stays keyboard reachable and keeps a visible focus ring.
  • Badges are visual; make sure any meaningful count is also announced elsewhere.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add mobile-bottom-nav --framework vue or switch the framework in components.json.

<script setup lang="ts">
import { BottomNavigation } from "@/components/ui/bottom-navigation";

import type { MobileBottomNavProps } from "./types";

const props = defineProps<MobileBottomNavProps>();
</script>

<template>
  <BottomNavigation
    :items="props.items"
    :variant="props.variant"
    :class="props.class"
    :on-select="props.onSelect"
  />
</template>

On this page