Skip to content

Mobile bottom tab bar

A navigation that sits at the bottom of the screen, under the thumb, on phones, and becomes a horizontal bar at the top on desktop.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

On phones most visitors hold the device in one hand: the main links are better placed where the thumb reaches. Below 48 rem wide, this navigation is fixed at the bottom of the screen, like in an app, with four 56 px tabs with icon and label and notched-iPhone margins respected (safe-area-inset-bottom); above that it goes back into the header as horizontal pills. The current page tab is marked aria-current="page" (colour plus background, not colour alone, on large screens), a badge shows the number of items in the cart with text readable by screen readers, and the page keeps room at the bottom for the bar so nothing is hidden. A single nav element named “Main navigation”, real links, no script needed (a few lines only move aria-current in the anchor demo). SVG icons in currentColor, AA contrast in light and dark mode. Example: a pizzeria taking takeaway orders.

Code

Loading the code…

The code of this component in

Archive contents

navbar-onglets-bas-mobile-html-tailwind.zip3 files · 5 Ko

  • index.html7 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A transparent bar laid over the hero visual that turns solid as soon as you scroll.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Logo on the left, links in the middle, call to action on the right, collapsible menu on mobile.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A rounded bar floating above the content, for product sites and SaaS.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A Services menu that unfolds a panel of described links across several columns.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component