Two-tier navigation in Tailwind CSS
A strip of practical details (phone, opening hours) above the main navigation.
Here is an excerpt of this component's code in Tailwind CSS. The full code is free for members, ready to copy into your project.
This component also comes in
The code in Tailwind CSS
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Navigation à double niveau</title>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.3.3"></script>
<style type="text/tailwindcss">
@custom-variant dark {
@media (prefers-color-scheme: dark) {
&:where(:root:not([data-theme="light"]), :root:not([data-theme="light"]) *) {
@slot;Free component: copy it freely, including for commercial projects.
Other navigation bars components in Tailwind CSS
Navigation bars components in Tailwind CSS
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

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