Home / File/ navigation-menu-demo.tsx — ui Source File

navigation-menu-demo.tsx — ui Source File

Architecture documentation for navigation-menu-demo.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 5 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  c3bc0729_a160_2238_95c6_f77383e131e8["navigation-menu-demo.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  c3bc0729_a160_2238_95c6_f77383e131e8 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  ba3d44f3_7b34_f9cc_6283_44817785c0df["link"]
  c3bc0729_a160_2238_95c6_f77383e131e8 --> ba3d44f3_7b34_f9cc_6283_44817785c0df
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  c3bc0729_a160_2238_95c6_f77383e131e8 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  77b7a4f4_c577_8eb7_1c27_3fd006855618["use-mobile"]
  c3bc0729_a160_2238_95c6_f77383e131e8 --> 77b7a4f4_c577_8eb7_1c27_3fd006855618
  661dda96_0e3f_9023_7403_2265c890b5e7["navigation-menu"]
  c3bc0729_a160_2238_95c6_f77383e131e8 --> 661dda96_0e3f_9023_7403_2265c890b5e7
  style c3bc0729_a160_2238_95c6_f77383e131e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import Link from "next/link"
import { CircleCheckIcon, CircleHelpIcon, CircleIcon } from "lucide-react"

import { useIsMobile } from "@/registry/new-york-v4/hooks/use-mobile"
import {
  NavigationMenu,
  NavigationMenuContent,
  NavigationMenuItem,
  NavigationMenuLink,
  NavigationMenuList,
  NavigationMenuTrigger,
  navigationMenuTriggerStyle,
} from "@/registry/new-york-v4/ui/navigation-menu"

const components: { title: string; href: string; description: string }[] = [
  {
    title: "Alert Dialog",
    href: "/docs/primitives/alert-dialog",
    description:
      "A modal dialog that interrupts the user with important content and expects a response.",
  },
  {
    title: "Hover Card",
    href: "/docs/primitives/hover-card",
    description:
      "For sighted users to preview content available behind a link.",
  },
  {
    title: "Progress",
    href: "/docs/primitives/progress",
    description:
      "Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.",
  },
  {
    title: "Scroll-area",
    href: "/docs/primitives/scroll-area",
    description: "Visually or semantically separates content.",
  },
  {
    title: "Tabs",
    href: "/docs/primitives/tabs",
    description:
      "A set of layered sections of content—known as tab panels—that are displayed one at a time.",
  },
  {
    title: "Tooltip",
    href: "/docs/primitives/tooltip",
    description:
      "A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.",
  },
]

export default function NavigationMenuDemo() {
  const isMobile = useIsMobile()

  return (
    <NavigationMenu viewport={isMobile}>
// ... (156 more lines)

Subdomains

Dependencies

  • link
  • lucide-react
  • navigation-menu
  • react
  • use-mobile

Frequently Asked Questions

What does navigation-menu-demo.tsx do?
navigation-menu-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in navigation-menu-demo.tsx?
navigation-menu-demo.tsx defines 2 function(s): ListItem, NavigationMenuDemo.
What does navigation-menu-demo.tsx depend on?
navigation-menu-demo.tsx imports 5 module(s): link, lucide-react, navigation-menu, react, use-mobile.
Where is navigation-menu-demo.tsx in the architecture?
navigation-menu-demo.tsx is located at apps/v4/registry/new-york-v4/examples/navigation-menu-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free