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

navigation-menu-example.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 5 imports 4 functions

Entity Profile

Dependency Diagram

graph LR
  1eced209_8c47_581a_28f2_98c041b9e3fe["navigation-menu-example.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  1eced209_8c47_581a_28f2_98c041b9e3fe --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  ba3d44f3_7b34_f9cc_6283_44817785c0df["link"]
  1eced209_8c47_581a_28f2_98c041b9e3fe --> ba3d44f3_7b34_f9cc_6283_44817785c0df
  da02b53a_0c1d_d1a1_af31_74d99f1cdd7a["example"]
  1eced209_8c47_581a_28f2_98c041b9e3fe --> da02b53a_0c1d_d1a1_af31_74d99f1cdd7a
  14965eee_4768_3b11_316d_a487769f8636["navigation-menu"]
  1eced209_8c47_581a_28f2_98c041b9e3fe --> 14965eee_4768_3b11_316d_a487769f8636
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  1eced209_8c47_581a_28f2_98c041b9e3fe --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style 1eced209_8c47_581a_28f2_98c041b9e3fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import Link from "next/link"

import {
  Example,
  ExampleWrapper,
} from "@/registry/bases/radix/components/example"
import {
  NavigationMenu,
  NavigationMenuContent,
  NavigationMenuItem,
  NavigationMenuLink,
  NavigationMenuList,
  NavigationMenuTrigger,
  navigationMenuTriggerStyle,
} from "@/registry/bases/radix/ui/navigation-menu"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

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 NavigationMenuExample() {
  return (
// ... (199 more lines)

Subdomains

Dependencies

  • example
  • icon-placeholder
  • link
  • navigation-menu
  • react

Frequently Asked Questions

What does navigation-menu-example.tsx do?
navigation-menu-example.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-example.tsx?
navigation-menu-example.tsx defines 4 function(s): ListItem, NavigationMenuExample, NavigationMenuWithViewport, NavigationMenuWithoutViewport.
What does navigation-menu-example.tsx depend on?
navigation-menu-example.tsx imports 5 module(s): example, icon-placeholder, link, navigation-menu, react.
Where is navigation-menu-example.tsx in the architecture?
navigation-menu-example.tsx is located at apps/v4/registry/bases/radix/examples/navigation-menu-example.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/examples).

Analyze Your Own Codebase

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

Try Supermodel Free