MeDo

Generatore di Barra Laterale IA.

Descrivi la barra laterale di cui hai bisogno — link di navigazione, menu annidati, filtri o widget — e MeDo genera codice pulito e pronto per la produzione in pochi secondi. Nessuno scaffolding, nessun boilerplate.

Barra laterale
Barra laterale

Una barra laterale ben progettata è la spina dorsale di ogni app complessa

Le barre laterali fanno molto di più che elencare link — definiscono la gerarchia informativa della tua app, riducono l'attrito nella navigazione e mantengono gli utenti orientati a ogni livello di profondità. Una barra laterale mal strutturata fa perdere il contesto agli utenti e li porta ad abbandonare i flussi. Inizia nel modo giusto fin da subito con una struttura generata dall'IA che rispecchia il modo in cui i tuoi utenti pensano realmente.

6 modelli

Modelli di Barra laterale 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.

App shellAcme

Fixed 240px Nav With Nested Sections

The dashboard default: icon plus label rows, two levels of nesting, a user block pinned to the bottom. Persist which sections are expanded, or the sidebar resets its shape on every page load.

Create a fixed 240px sidebar for an app shell: logo at the top, then icon-and-label rows for Dashboard, Analytics, Content and Settings, with Analytics and Content expanding into two or three nested sub-items behind a chevron that rotates 90 degrees when open. Mark the active route with aria-current="page", a left accent bar and a tinted row background, and auto-expand the section containing it on load. Persist expanded sections in localStorage. Pin a user block with avatar, name and workspace to the bottom with margin-top auto. Below 1024px, hide the sidebar off-canvas and open it as a drawer from a header toggle.

Prova in MeDo
CollapsibleMega

Rail That Expands to Full Width

Toggles between a 64px icon rail and a 240px labelled panel. Icons alone are not self-explanatory — without tooltips in the collapsed state, users learn the rail by clicking things at random.

Create a collapsible sidebar that toggles between a 64px icon rail and a 240px expanded panel, animating the width over 200ms with a transform-friendly transition and no layout thrash on the main content. In the collapsed state, center each icon, hide the labels, and show the label as a tooltip on hover and on keyboard focus so the icons are not guesswork. Keep the toggle button at the bottom of the rail with aria-expanded and a chevron that mirrors direction. Persist the collapsed state in localStorage and honour it during server rendering so the panel does not flash open on load.

Prova in MeDo
Docs TOCDocs

Scroll-Spy Table of Contents

A full documentation tree with the current heading tracked as you scroll. The hard part is not the highlight — it is keeping the active item inside the sidebar's own scroll viewport on load.

Create a documentation sidebar showing a full table of contents: six collapsible guide groups with four to eight page links each, the current page marked with aria-current="page", and beneath it an on-page heading list tracked by an IntersectionObserver so the visible section highlights as the reader scrolls. Give the sidebar its own overflow-y-auto scroll container with the header height subtracted from its max height, and scroll the active item into view on load using scrollIntoView with block: nearest so the page itself does not jump. Below 1024px, move the whole tree into a drawer.

Prova in MeDo
FiltersShop

Faceted Filter Panel

Not navigation at all — a form that happens to sit in the left column. Each applied filter has to survive a page refresh, which means the URL is the state, not a hook.

Create a faceted filter sidebar for a product listing page: collapsible groups for Category with checkboxes and result counts, Price as a dual-handle range with numeric inputs, Brand as a searchable checkbox list capped at six visible items behind a Show all toggle, plus Rating and In stock. Reflect every applied filter in the URL query string so the filtered view is refreshable and shareable, and show applied filters as removable chips at the top with a Clear all. Announce the updated result count through an aria-live="polite" region. Below 1024px, present the whole panel as a bottom sheet behind a Filters button showing the active count.

Prova in MeDo
Content railStudio

Sticky Article Companion

A right-hand rail on a blog or docs article carrying the table of contents, share links and related posts. Sticky positioning fails silently here if any ancestor has overflow set.

Create a sticky right-hand sidebar for a long article: an On this page heading list built from the h2 and h3 elements with the current section highlighted by an IntersectionObserver, a reading-time estimate, a vertical share row, and a three-item related-posts list at the bottom. Use position: sticky with a top offset equal to the header height, and make sure no ancestor of the sidebar sets overflow to hidden or auto, since that silently breaks sticky. Hide the rail entirely below 1280px and render the heading list as a collapsed details element above the article body instead.

Prova in MeDo
Multi-levelShipfast

Three-Level Tree With Search

For CMS and admin tools where the tree is genuinely deep. Filtering the tree is what makes three levels usable — without a search field, level three is effectively unreachable.

Create a three-level sidebar tree for a CMS: a filter input at the top that matches labels at any depth and auto-expands the branches containing a match, then top-level sections each holding groups which hold page links. Indent each level by 12px with a hairline guide line rather than more padding, so depth stays readable at 240px. Support full keyboard traversal with arrow keys — down and up between visible rows, right to expand, left to collapse or move to the parent — and give each expandable row aria-expanded. Keep the active branch expanded across navigations.

Prova in MeDo

Come personalizzare il tuo Barra laterale

Adatta alla tua profondità informativa

Per app piatte con 5-8 sezioni, una barra laterale a singolo livello è più pulita. Per app profonde come dashboard admin o siti di documentazione, richiedi 2-3 livelli di annidamento con comportamento espandi/comprimi.

Specifica il comportamento di compressione

Indica a MeDo se la barra laterale deve comprimersi a icone su mobile, scorrere off-canvas con un toggle hamburger, o rimanere sempre visibile. Ogni pattern si adatta a diverse dimensioni di schermo e casi d'uso.

Aggiungi widget contestuali

Le barre laterali non sono solo navigazione — richiedi card del profilo utente, barre di utilizzo dello storage, badge di notifiche o pulsanti di azione rapida per trasformare la tua in un vero hub di produttività.

Controlla larghezza e ancoraggio

Specifica una larghezza fissa della barra laterale (es. 240px) o un pannello ridimensionabile. Per pagine con contenuti lunghi, richiedi una barra laterale sticky che segue lo scroll così la navigazione è sempre raggiungibile.

Chi usa il componente Barra laterale

Dashboard SaaS

I dashboard di amministrazione e analisi usano barre laterali per organizzare moduli come Utenti, Report, Fatturazione e Impostazioni — con sotto-elementi annidati e contatori badge per le notifiche non lette.

Sito di documentazione

I siti di documentazione si affidano alle barre laterali per esporre un indice completo, spesso con sezioni comprimibili per guida e uno scroll-spy sticky così i lettori sanno sempre dove si trovano.

Filtro categorie e-commerce

Le pagine di elenco prodotti usano pannelli laterali per il filtraggio a faccette — categorie, fasce di prezzo, checkbox di brand — permettendo agli acquirenti di restringere migliaia di risultati senza lasciare la pagina.

Sistema di gestione contenuti

Le interfacce CMS usano barre laterali per navigare tipi di contenuto, bozze, librerie multimediali e flussi di pubblicazione, mantenendo il canvas principale libero per l'editing.

Pattern di Barra laterale per siti web diversi

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

01 / 06

SaaS Dashboard Sidebar

The primary navigation for a logged-in product: sections, sub-items, badge counts and a user block at the bottom. Persist which groups are expanded — a sidebar that collapses back to its default shape on every page load makes the app feel like it forgets you.

Stili e varianti di Barra laterale

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

01 / 06

Fixed Sidebar

Always visible at 240 to 280px, with the main content offset by the same width. The right default for a dashboard on desktop: navigation that never has to be summoned is navigation people actually use.

Barra laterale in React, Next.js, Vue e Svelte

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

01 / 06

React Sidebar

Two pieces of state — the expanded groups and the mobile drawer — so keep both in the sidebar rather than lifting them to a layout provider. Take the current path as a prop so the component stays router-agnostic.

src/components/Sidebar.tsx

export function Sidebar({ sections, pathname }) {
  const [open, setOpen] = useState(() => activeGroup(sections, pathname))

  return (
    <aside className="w-60 shrink-0 overflow-y-auto">
      <nav aria-label="Sidebar">
        {sections.map((s) => (
          <Group key={s.id} section={s} expanded={open === s.id} />
        ))}
      </nav>
    </aside>
  )
}

Come aggiungere il tuo Barra laterale a un progetto

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

01~30s

Pick a Sidebar Template

Match it to what the column actually holds: app routes take the fixed nav, a docs tree takes scroll-spy, product facets take the filter panel. Those three have almost nothing in common beyond their position on screen.

02~10s

Copy the Prompt

Paste it into MeDo, Lovable, Bolt, v0 or Cursor with your real section names. Keep the persistence and mobile-drawer clauses — the localStorage state and the focus trap are the first things a trimmed prompt loses.

03~1min

Generate and Refine

You get React + Tailwind back with a live preview. Follow up in plain English — "add badge counts to Inbox", "collapse to an icon rail", "pin the user block to the bottom".

04~2min

Mount It in Your Layout

Put it in a nested layout — app/(app)/layout.tsx or +layout.svelte — beside a flex-1 main, not inside the page. Mounted per page it remounts on every navigation and loses its scroll position and expanded groups.

Domande comuni su Barra laterale

Come creo una barra laterale con l'IA?

Apri MeDo, descrivi la barra laterale desiderata in testo semplice — inclusa la struttura dei link, il comportamento (comprimibile, sticky, solo icone) e lo schema di colori — e MeDo genera il codice completo del componente. Puoi iterare raffinando il tuo prompt fino a ottenere esattamente ciò che vuoi.

Qual è il miglior generatore di barre laterali con IA?

MeDo è progettato specificamente per generare componenti UI curati come le barre laterali. A differenza dei generatori di codice generici, MeDo comprende la semantica del layout, il comportamento responsive e i design system — così ottieni una barra laterale che funziona, non solo una che appare bene in uno screenshot.

Posso generare una barra laterale comprimibile con l'IA?

Sì. Basta includere "comprimibile" nel tuo prompt e specificare il target di compressione — modalità solo icone, off-canvas completo o pannello ridimensionabile. MeDo gestisce automaticamente la logica di toggle JavaScript e le transizioni CSS.

Come creo una barra laterale responsive che funzioni su mobile?

Chiedi a MeDo di generare una barra laterale che si comprima in un drawer attivato da hamburger su schermi sotto un breakpoint (es. 768px). Il componente generato include media query e la gestione dello stato del toggle per funzionare correttamente sin da subito.

L'IA può generare una barra laterale con elementi di menu annidati?

Assolutamente. Descrivi la profondità del tuo menu nel prompt — ad esempio, "una barra laterale a due livelli dove ogni elemento di primo livello si espande per rivelare 3 sotto-elementi con un chevron animato" — e MeDo genera la struttura ricorsiva o annidata piatta di conseguenza.

MeDo supporta componenti sidebar per React e Next.js?

Sì. MeDo genera componenti nel framework e linguaggio che specifichi. Chiedi un componente funzionale React con TypeScript, una sidebar di layout Next.js App Router, o una versione pura HTML/CSS/JS — l'output si adatta al tuo stack.