Mobile bottom tab bar in React
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.
Here is an excerpt of this component's code in React. The full code is free for members, ready to copy into your project.
This component also comes in
The code in React
import { useEffect, useRef } from "react";
const styles = `
@media (max-width: 47.99rem) {
.nob-nav {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 30;
padding-bottom: env(safe-area-inset-bottom);
}Free component: copy it freely, including for commercial projects.
Other navigation bars components in React
Navigation bars components in React
Logo on the left, links in the middle, call to action on the right, collapsible menu on mobile.
- Tailwind
- React
- CSS
- WordPress

The house name in the middle, links split on each side, restaurant or designer-shop style.
- Tailwind
- React
- CSS
- WordPress

A strip of practical details (phone, opening hours) above the main navigation.
- Tailwind
- React
- CSS
- WordPress