shadcn.io is an independent project built on shadcn/ui
The bar shows Products. The panel has Web, Mobile, and Infrastructure tabs, three links on each, and a line that says Need help choosing?
Use tabs when one panel would be too tall for every product. Put the same tabs on the page with Tabs if the catalog is the page. In Svelte, Ark UI closes the open panel when you press Escape.
Installation
Anatomy

Usage
<div class="w-full max-w-md rounded-md border bg-background p-px"><NavigationMenu><NavigationMenuList><NavigationMenuItem><NavigationMenuTrigger>Products</NavigationMenuTrigger><NavigationMenuContent><div class="flex w-[700px] max-w-full flex-col gap-6 p-4"><Tabs defaultValue="web"><TabsList class="w-full">{#each tabs as tab (tab.value)}<TabsTrigger value={tab.value}>{tab.label}</TabsTrigger>{/each}</TabsList>{#each tabs as tab (tab.value)}<TabsContent value={tab.value}><div class="grid grid-cols-3 gap-4">{#each tab.items as item (item.title)}<NavigationMenuLink class="items-start gap-2">{#snippet asChild(props)}<a {...props({ href: "#" })}><item.icon aria-hidden="true" class="mt-0.5 size-5" /><div class="flex flex-col gap-0.5"><span class="font-medium">{item.title}</span><span class="text-muted-foreground">{item.description}</span></div></a>{/snippet}</NavigationMenuLink>{/each}</div></TabsContent>{/each}</Tabs><div class="rounded-lg bg-muted p-4"><p class="text-muted-foreground text-sm"><strong class="text-foreground">Need help choosing?</strong>{" "}Our team can help you find the right solution for your needs.</p></div></div></NavigationMenuContent></NavigationMenuItem></NavigationMenuList></NavigationMenu></div>FAQ
How are the tabs set up?
The tabs are uncontrolled and start on Web.
defaultValue is web, and each TabsTrigger and TabsContent has the tab's value.
Where do the tabs come from?
A list at the top of the file, each tab a label, a value and its three products, mapped to one trigger and one panel each.
How do the links use my router?
Each link is your router's link rendered through NavigationMenuLink, so it keeps the menu's styles and focus handling.
The demo puts an anchor inside NavigationMenuLink. SvelteKit routes plain links, so that is enough.
API Reference
Navigation Menu
No extra props in this demo. The rest is on the Navigation Menu page.
Tabs
Sets defaultValue="web" and value={tab.value}. The rest is on the Tabs page.




