import {
NavigationMenu,
NavigationMenuContent,
NavigationMenuItem,
NavigationMenuLink,
NavigationMenuList,
NavigationMenuTrigger,
} from "@/components/ui/navigation-menu"
const components = [
{ title: "Alert Dialog", href: "/docs/components/alert-dialog", description: "A modal dialog that interrupts the user." },
{ title: "Hover Card", href: "/docs/components/hover-card", description: "Preview content behind a link." },
{ title: "Progress", href: "/docs/components/progress", description: "Display progress of a task." },
{ title: "Scroll Area", href: "/docs/components/scroll-area", description: "Augments native scroll." },
{ title: "Tabs", href: "/docs/components/tabs", description: "Layered content sections." },
{ title: "Tooltip", href: "/docs/components/tooltip", description: "Popup with information." },
]
export function NavigationMenuGrid() {
return (
<NavigationMenu>
<NavigationMenuList>
<NavigationMenuItem>
<NavigationMenuTrigger>Components</NavigationMenuTrigger>
<NavigationMenuContent>
<ul className="grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]">
{components.map((component) => (
<li key={component.title}>
<NavigationMenuLink asChild>
<a
href={component.href}
className="block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"
>
<div className="text-sm font-medium leading-none">{component.title}</div>
<p className="line-clamp-2 text-sm leading-snug text-muted-foreground">
{component.description}
</p>
</a>
</NavigationMenuLink>
</li>
))}
</ul>
</NavigationMenuContent>
</NavigationMenuItem>
</NavigationMenuList>
</NavigationMenu>
)
}