MeDo

Generatore di Navbar IA.

Descrivi il tuo sito e ottieni una navbar completamente responsiva — con logo, link di navigazione, menu a discesa e un hamburger menu mobile — generata da un singolo prompt. Nessun template, nessuna complicazione.

Barra di navigazione
Barra di navigazione

La navbar è la mappa che gli utenti leggono prima di ogni altra cosa

Una navbar non è un ornamento in cima alla pagina; è l'indice compresso di tutto il tuo sito. I link che scegli, l'ordine in cui li disponi e ciò che releghi in un menu a discesa dicono al visitatore che cos'è il tuo prodotto e dove si trovano le parti importanti. Sbaglia il raggruppamento e gli utenti abbandonano anche se la pagina che cercavano esiste a due clic di distanza. I crawler dei motori di ricerca la leggono allo stesso modo, trattando i link della navbar come un segnale forte su quali pagine contano di più. Per questo la navbar va progettata prima come problema di architettura dell'informazione e solo dopo come problema di layout.

6 modelli

Modelli di Barra di navigazione che puoi generare

Ogni modello è un prompt reale, non uno screenshot. Copialo in qualsiasi editor IA, oppure eseguilo in MeDo e ottieni codice 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.

Prova in 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.

Prova in 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.

Prova in 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.

Prova in 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.

Prova in 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.

Prova in MeDo

Come personalizzare il tuo Barra di navigazione

Fissala con posizionamento sticky

Chiedi a MeDo di rendere la navbar sticky così segue gli utenti durante lo scroll. Aggiungi un effetto blur di sfondo o un'ombra leggera allo scroll per darle profondità senza essere invadente.

Aggiungi un mega-menu per siti complessi

Se il tuo sito ha molte aree prodotto o sezioni di documentazione, richiedi un mega-menu con colonne e icone. Trasforma una navigazione caotica in una superficie di scoperta organizzata.

Adatta il CTA alla fase del tuo funnel

Il CTA della navbar è uno spazio premium. Specifica se vuoi un pulsante "Registrati gratis", un link "Prenota una demo" o un layout a doppio pulsante — e MeDo lo configurerà di conseguenza.

Controlla il comportamento mobile esplicitamente

Descrivi come deve aprirsi il menu mobile (drawer scorrevole vs. overlay a schermo intero), quali animazioni usare e se l'icona hamburger deve animarsi in una X alla commutazione.

Chi usa il componente Barra di navigazione

Prodotto SaaS

Navigazione pulita a due livelli con logo, link di livello superiore a prodotto/prezzi/docs e un CTA sticky "Prova gratuita" che resta visibile mentre gli utenti scorrono lunghe landing page.

Negozio e-commerce

Una navbar con barra di ricerca, dropdown per categorie, un'icona carrello con badge quantità e un link login/account — tutto compresso in un drawer laterale mobile.

Sito di documentazione

Una navbar fissa minimalista con logo, selettore versione a discesa, un pulsante stella GitHub e un campo di ricerca a larghezza piena che si espande al focus.

Sito marketing / agenzia

Una navbar trasparente sovrapposta a un'immagine hero, che transita verso uno sfondo solido allo scroll e presenta un prominente pulsante "Richiedi preventivo" per la generazione di lead.

Pattern di Barra di navigazione per siti web diversi

Lo stesso componente barra di navigazione, calibrato sul tipo di sito su cui viene pubblicato.

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.

Stili e varianti di Barra di navigazione

Scegli la variante che si adatta al resto della pagina, poi generala.

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.

Barra di navigazione in React, Next.js, Vue e Svelte

React, Next.js, Vue 3, SvelteKit, Astro o HTML puro: lo stesso barra di navigazione, sei modi per integrarlo.

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>
  )
}

Come aggiungere il tuo Barra di navigazione a un progetto

Quattro passaggi, dalla scelta di un modello di barra di navigazione alla messa in produzione.

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.

Domande comuni su Barra di navigazione

Come creo una navbar con l'IA?

Scrivi un prompt che descrive il tipo di sito, i link necessari, la struttura dei dropdown e il tuo stile visivo preferito. Incollalo in MeDo e genererà un componente navbar completamente strutturato e responsivo che puoi copiare direttamente nel tuo progetto.

Qual è il miglior generatore di navbar IA?

MeDo è progettato specificamente per generare componenti UI pronti per la produzione da prompt in linguaggio naturale. A differenza degli strumenti di codifica IA generici, MeDo comprende pattern di design come header sticky, mega-menu e drawer mobili — così ottieni output pulito e utilizzabile invece di boilerplate.

Posso generare una navbar mobile responsiva con l'IA?

Sì. Includi semplicemente il comportamento mobile nel tuo prompt — ad esempio, "aggiungi un hamburger menu che apre un drawer scorrevole su mobile." MeDo genererà la logica di toggle, l'animazione e i breakpoint responsivi insieme al layout desktop.

Come aggiungo un menu a discesa a una navbar generata dall'IA?

Menziona il dropdown nel tuo prompt: "aggiungi un menu a discesa sotto il link Prodotti con tre voci: Funzionalità, Integrazioni e Changelog." MeDo genererà l'interazione hover/focus e la navigazione accessibile da tastiera per il sottomenu.

Qual è la differenza tra una navbar e un'intestazione (header)?

Un'intestazione è tutta la fascia in cima alla pagina, compresi il logo, un'eventuale barra di annunci e il comportamento allo scroll di quella fascia. La navbar è specificamente l'insieme dei link di navigazione al suo interno. Se la tua domanda riguarda la struttura dei link, i dropdown e i menu mobili, ti serve una navbar; se riguarda il branding, il posizionamento sticky e come si comporta la parte alta della pagina durante lo scroll, guarda il generatore di intestazioni IA.

MeDo genera codice navbar accessibile?

Sì. Le navbar generate da MeDo includono HTML semantico (elementi nav, ul, li, button), etichette ARIA per il toggle mobile e dropdown navigabili da tastiera — così ottieni accessibilità senza sforzo aggiuntivo.