Navigation Menu
agentmesh/navigation-menu-exampleFreeExample
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/navigation-menu-example.jsonSource
1"use client"23import * as React from "react"4import Link from "next/link"56import {7 Example,8 ExampleWrapper,9} from "@/registry/base-vega/components/example"10import {11 NavigationMenu,12 NavigationMenuContent,13 NavigationMenuItem,14 NavigationMenuLink,15 NavigationMenuList,16 NavigationMenuTrigger,17 navigationMenuTriggerStyle,18} from "@/registry/base-vega/ui/navigation-menu"19import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"2021const components: { title: string; href: string; description: string }[] = [22 {23 title: "Alert Dialog",24 href: "/docs/primitives/alert-dialog",25 description:26 "A modal dialog that interrupts the user with important content and expects a response.",27 },28 {29 title: "Hover Card",30 href: "/docs/primitives/hover-card",31 description:32 "For sighted users to preview content available behind a link.",33 },34 {35 title: "Progress",36 href: "/docs/primitives/progress",37 description:38 "Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.",39 },40 {41 title: "Scroll-area",42 href: "/docs/primitives/scroll-area",43 description: "Visually or semantically separates content.",44 },45 {46 title: "Tabs",47 href: "/docs/primitives/tabs",48 description:49 "A set of layered sections of content—known as tab panels—that are displayed one at a time.",50 },51 {52 title: "Tooltip",53 href: "/docs/primitives/tooltip",54 description:55 "A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.",56 },57]5859export default function NavigationMenuExample() {60 return (61 <ExampleWrapper className="lg:grid-cols-1">62 <NavigationMenuBasic />63 </ExampleWrapper>64 )65}6667function NavigationMenuBasic() {68 return (69 <Example title="Basic">70 <NavigationMenu>71 <NavigationMenuList>72 <NavigationMenuItem>73 <NavigationMenuTrigger>Getting started</NavigationMenuTrigger>74 <NavigationMenuContent>75 <ul className="w-96">76 <ListItem href="/docs" title="Introduction">77 Re-usable components built with Tailwind CSS.78 </ListItem>79 <ListItem href="/docs/installation" title="Installation">80 How to install dependencies and structure your app.81 </ListItem>82// … truncated
What it pulls in
Other registry items
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion-example | shadcn/ui | Examples | Free | no deps | |
| Alert Dialogalert-dialog-example | shadcn/ui | Examples | Free | no deps | |
| Alertalert-example | shadcn/ui | Examples | Free | no deps | |
| Aspect Ratioaspect-ratio-example | shadcn/ui | Examples | Free | no deps | |
| Avataravatar-example | shadcn/ui | Examples | Free | no deps | |
| Badgebadge-example | shadcn/ui | Examples | Free | no deps | |
| Breadcrumbbreadcrumb-example | shadcn/ui | Examples | Free | no deps | |
| Buttonbutton-example | shadcn/ui | Examples | Free | no deps |
