Overlays
Navigation Menu
Site navigation whose panel resizes and slides as you move between items.
npx shadcn-svelte@latest add http://localhost:5173/r/navigation-menu.json Default
One shared panel scales in from the top. Moving between items, it resizes to fit and the content slides in from the side you came from (200ms ease-out). Hover or use the keyboard.
light
dark
Without viewport
viewport=false: each item opens its own panel right under its trigger, scaling in from it like a popover.
light
dark