MeDo

Générateur de Navbar IA.

Décrivez votre site et obtenez une navbar entièrement responsive — avec logo, liens de navigation, menus déroulants et un menu hamburger mobile — générée depuis un seul prompt. Pas de modèles, pas de bidouillage.

Barre de navigation
Barre de navigation

La navbar est la carte que les utilisateurs lisent avant tout le reste

Une navbar n'est pas une décoration en haut de page ; c'est la table des matières condensée de tout votre site. L'ensemble des liens que vous choisissez, l'ordre dans lequel vous les placez et ce que vous reléguez dans un menu déroulant indiquent au visiteur ce qu'est votre produit et où se trouvent les parties importantes. Ratez le regroupement et les utilisateurs partent alors que la page qu'ils cherchaient existe à deux clics. Les robots d'indexation la lisent de la même manière et traitent les liens de la navbar comme un signal fort indiquant quelles pages comptent le plus. C'est pourquoi la navbar mérite d'être conçue d'abord comme un problème d'architecture de l'information, et seulement ensuite comme un problème de mise en page.

6 modèles

Modèles de Barre de navigation que vous pouvez générer

Chaque modèle est un vrai prompt, pas une capture d'écran. Copiez-le dans n'importe quel éditeur IA, ou exécutez-le dans MeDo pour récupérer du code React + Tailwind.

ClassicAcme

Logo, Five Links, One CTA

The default that fits most product sites. Reach for it only when your top level really is five items or fewer — a single row of nine links makes a small site feel disorganised rather than complete.

Create a horizontal navbar with a logo mark plus wordmark on the left, five links — Product, Pricing, Docs, Customers, Blog — centered, and one filled Get started button on the right. Mark the current route with aria-current="page" plus a 2px underline sitting on the text baseline rather than the container edge. Below 768px, replace the link row with a hamburger button that toggles aria-expanded and opens a full-height drawer sliding in from the right. Trap focus inside the drawer, close it on Escape and on route change, lock body scroll while it is open, and return focus to the hamburger button when it closes.

Tester dans MeDo
Mega menuMega

Mega Menu With Grouped Columns

For sites with more sections than a link row can hold. The mega panel buys you depth, but it also means two of your top-level items are no longer clickable destinations — decide that deliberately.

Create a navbar where two of five top-level items open a full-width mega menu panel: three columns of grouped links, each label with a one-line description underneath, plus a highlighted card on the right. Open the panel on hover after a 120ms delay and on Enter or Space for keyboard users. Give each trigger aria-expanded and aria-controls, move between panel links with arrow keys, close on Escape and when focus leaves the panel, and let Tab move on to the next top-level item. Below 1024px, flatten every mega panel into a nested accordion inside the mobile drawer instead of a hover panel.

Tester dans MeDo
CenteredShipfast

Centered Links With a Dual CTA

Sign in beside Start free, links dead center. Use a three-column grid rather than flexbox centering, or the link block drifts every time the button labels change length.

Create a navbar laid out as a three-column grid so the center block stays optically centered regardless of logo width or button label length: logo left, four links centered, and two actions right — a text Sign in link and a filled Start free button. Start fully transparent over the hero, then switch to a solid background with a 1px bottom border once the page scrolls past 80px, transitioning over 200ms, and swap the logo from its light variant to its dark variant at the same threshold. On mobile, collapse the links into a hamburger and keep only the Start free button visible next to it.

Tester dans MeDo
Docs navDocs

Version Switcher and Search Trigger

A navbar for a documentation site, where the nav is mostly controls rather than links. The search trigger earns more clicks here than every link beside it combined.

Create a navbar for a documentation site: logo on the left, then Docs, API and Changelog links, a version select showing v3.2 with older majors listed beneath, a search button showing a Command-K hint, a theme toggle and a GitHub star count. Bind Command-K and Control-K globally to open search, and make sure the shortcut is ignored while focus is inside an input or textarea. Below the tablet breakpoint, keep the search button and the sidebar toggle visible in the bar and move the links, version switcher and theme toggle into a drawer.

Tester dans MeDo
CommerceShop

Category Nav With Cart Count

Search takes real width, categories take the rest, and the cart lives at the far right. On a store the navbar is a working control surface, not a signpost — treat the search field as the primary element.

Create an e-commerce navbar: logo on the left, six category links with two opening a dropdown of subcategories, a search input that expands to fill the available row width on focus, and on the right an account link and a cart button with a count badge. Announce cart changes through an aria-live="polite" region so the count is not a silent visual update. Below 768px, keep the logo, a search icon and the cart in the bar, move categories into a left-hand drawer as a nested accordion, and expand search into a full-width overlay when its icon is tapped.

Tester dans MeDo
MinimalStudio

Wordmark and Four Links

No CTA, no dropdowns — a wordmark and four links, letting the work carry the page. The restraint only holds if the four labels are nouns a stranger recognises.

Create a minimal navbar for a design studio: a lowercase wordmark on the left and four links — Work, Studio, Journal, Contact — right-aligned in a light weight with generous letter spacing. Mark the current route with aria-current="page" and a subtle opacity change rather than an underline. Keep the bar static rather than sticky so it scrolls away with the page. Below 640px, keep all four links visible by dropping to a two-line layout with the wordmark above the links instead of introducing a hamburger, since four short labels do not justify a drawer.

Tester dans MeDo

Comment personnaliser votre Barre de navigation

Fixez-la avec un positionnement sticky

Demandez à MeDo de rendre la navbar sticky pour qu'elle suive les utilisateurs pendant le défilement. Ajoutez un flou d'arrière-plan ou une légère ombre au défilement pour lui donner de la profondeur sans être intrusive.

Ajoutez un méga-menu pour les sites complexes

Si votre site a de nombreuses zones de produits ou sections de documentation, demandez un méga-menu avec des colonnes et des icônes. Cela transforme une navigation encombrée en une surface de découverte organisée.

Adaptez le CTA à votre étape d'entonnoir

Le CTA de la navbar est un espace premium. Spécifiez si vous voulez un bouton "S'inscrire gratuitement", un lien "Réserver une démo" ou une disposition à double bouton — et MeDo le configurera en conséquence.

Contrôlez le comportement mobile explicitement

Décrivez comment le menu mobile doit s'ouvrir (tiroir glissant vs. overlay plein écran), quelles animations utiliser et si l'icône hamburger doit s'animer en X lors du basculement.

Qui utilise le composant Barre de navigation

Produit SaaS

Navigation épurée à deux niveaux avec logo, liens de niveau supérieur produit/tarifs/docs et un CTA sticky "Essai gratuit" qui reste visible lorsque les utilisateurs font défiler de longues pages d'atterrissage.

Boutique e-commerce

Une navbar avec barre de recherche, menus déroulants de catégories, une icône de panier avec badge de quantité et un lien connexion/compte — le tout se repliant dans un tiroir latéral mobile.

Site de documentation

Une navbar fixe minimaliste avec logo, sélecteur de version déroulant, un bouton étoile GitHub et un champ de recherche pleine largeur qui s'agrandit au focus.

Site marketing / agence

Une navbar transparente qui se superpose à une image hero, transite vers un fond solide au défilement et présente un bouton proéminent "Demander un devis" pour générer des leads.

Modèles de Barre de navigation pour différents sites web

Le même composant barre de navigation, adapté au type de site sur lequel il est publié.

01 / 06

SaaS Product Navbar

Five top-level links and one CTA, grouped by what a visitor is trying to do rather than by your internal teams. If Pricing is not in the top level, expect support tickets asking what it costs — a Pricing link buried in a dropdown reliably suppresses trial starts.

Styles et variantes de Barre de navigation

Choisissez la variante qui correspond au reste de la page, puis générez-la.

01 / 06

Sticky Navbar

Stays pinned as the page scrolls, usually gaining a border or a backdrop blur once past the fold. Give it an explicit height and set scroll-margin-top on your headings, or in-page anchor links land with the target hidden behind the bar.

Barre de navigation en React, Next.js, Vue et Svelte

React, Next.js, Vue 3, SvelteKit, Astro ou HTML simple — le même barre de navigation, six façons de l'intégrer.

01 / 06

React Navbar

One piece of state — whether the mobile drawer is open — so keep the hook at the navbar root and pass the current path in as a prop rather than reading a router inside it.

src/components/Navbar.tsx

export function Navbar({ pathname }) {
  const [open, setOpen] = useState(false)

  return (
    <nav aria-label="Main">
      {links.map((l) => (
        <a key={l.href} href={l.href}
           aria-current={pathname === l.href ? 'page' : undefined}>
          {l.label}
        </a>
      ))}
      <button aria-expanded={open} onClick={() => setOpen(!open)} />
    </nav>
  )
}

Comment ajouter votre Barre de navigation à un projet

Quatre étapes, du choix d'un modèle de barre de navigation à sa mise en production.

01~30s

Pick a Navbar Template

Count your real top-level destinations first. Five or fewer takes the classic row, more than that needs the mega menu, and a store needs the commerce variant with search and cart.

02~10s

Copy the Prompt

Paste it into MeDo, Lovable, Bolt, v0 or Cursor with your actual link labels substituted. Keep the mobile-drawer sentences intact — the focus trap and scroll lock are the parts that get dropped when a prompt is trimmed.

03~1min

Generate and Refine

You get React + Tailwind back with a live preview. Follow up in plain English — "move Pricing before Docs", "add a Sign in link beside the CTA", "close the drawer on route change".

04~2min

Mount It in Your Layout

Put the navbar in your root layout, then wire the active link to your router — usePathname, useRoute or $page.url.pathname — so aria-current is set from the real route rather than a hardcoded index.

Questions fréquentes à propos de Barre de navigation

Comment créer une navbar avec l'IA ?

Rédigez un prompt décrivant votre type de site, les liens nécessaires, la structure des menus déroulants et votre style visuel préféré. Collez-le dans MeDo et il générera un composant navbar entièrement structuré et responsive que vous pouvez copier directement dans votre projet.

Quel est le meilleur générateur de navbar IA ?

MeDo est conçu spécifiquement pour générer des composants UI prêts pour la production à partir de prompts en langage naturel. Contrairement aux outils de codage IA génériques, MeDo comprend les patterns de design comme les headers sticky, les méga-menus et les tiroirs mobiles — vous obtenez donc une sortie propre et utilisable plutôt que du code passe-partout.

Puis-je générer une navbar mobile responsive avec l'IA ?

Oui. Incluez simplement le comportement mobile dans votre prompt — par exemple, "ajoute un menu hamburger qui ouvre un tiroir glissant sur mobile." MeDo générera la logique de toggle, l'animation et les breakpoints responsives en plus du layout desktop.

Comment ajouter un menu déroulant à une navbar générée par IA ?

Mentionnez le menu déroulant dans votre prompt : "ajoute un menu déroulant sous le lien Produits avec trois éléments : Fonctionnalités, Intégrations et Changelog." MeDo générera l'interaction hover/focus et la navigation accessible au clavier pour le sous-menu.

Quelle est la différence entre une navbar et un en-tête (header) ?

Un en-tête est toute la bande située en haut de la page, incluant le logo, une éventuelle bannière d'annonce et le comportement au défilement de cette bande. Une navbar, c'est précisément l'ensemble des liens de navigation qui s'y trouvent. Si votre question porte sur la structure des liens, les menus déroulants et les menus mobiles, c'est une navbar qu'il vous faut ; si elle porte sur l'identité de marque, le positionnement sticky et le comportement du haut de page au défilement, consultez le générateur d'en-tête IA.

MeDo génère-t-il du code de navbar accessible ?

Oui. Les navbars générées par MeDo incluent du HTML sémantique (éléments nav, ul, li, button), des labels ARIA pour le toggle mobile et des menus déroulants navigables au clavier — pour une accessibilité sans effort supplémentaire.