navbottombeginner
Bottom Navigation
A mobile-friendly bottom navigation bar with icon and label for each tab.
Preview
<nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 px-4 py-2 z-50">
<div class="flex justify-around items-center">
<a href="#" class="flex flex-col items-center gap-1 text-blue-600">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
<span class="text-xs font-medium">Home</span>
</a>
<a href="#" class="flex flex-col items-center gap-1 text-gray-400">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
<span class="text-xs">Search</span>
</a>
<a href="#" class="flex flex-col items-center gap-1 text-gray-400">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path></svg>
<span class="text-xs">Alerts</span>
</a>
<a href="#" class="flex flex-col items-center gap-1 text-gray-400">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
<span class="text-xs">Profile</span>
</a>
</div>
</nav>Color Breakdown
Background
bg-white
#ffffff
Border
border-gray-200
#e5e7eb
Active Tab
text-blue-600
#2563eb
Inactive Tab
text-gray-400
#9ca3af
Dark Mode Variant
Add these Tailwind classes for a dark mode adaptation of this recipe.
dark:bg-gray-900 dark:border-gray-700 dark:text-blue-400 dark:text-gray-500Use Cases
Mobile web appsPWA navigationE-commerce mobile sites
Browser Support
All modern browsers.
Related Recipes
Build Your Own Color Recipe
Use our Tailwind CSS tools to experiment with colors, gradients, and component styles.
Explore ToolsFrequently Asked Questions
How do I handle the safe area on iPhones with notch?▼
Add pb-safe or use env(safe-area-inset-bottom) in CSS to prevent content from being hidden behind the home indicator.