BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/gr8monk3ys/navigation-menu

navigation-menu

gr8monk3ys/navigation-menu
FreeComponent

navigation-menu (identity-styled).

Install it

npx shadcn@latest add https://ui.lscaturchio.xyz/r/navigation-menu.json

Source

components/ui/navigation-menu.tsxui.lscaturchio.xyz/r/navigation-menu.json · first 6 KB
1import * as React from "react"
2import { cva } from "class-variance-authority"
3import { ChevronDownIcon } from "lucide-react"
4import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui"
5
6import { cn } from "@/lib/utils"
7
8function NavigationMenu({
9 className,
10 children,
11 viewport = true,
12 ...props
13}: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
14 viewport?: boolean
15}) {
16 return (
17 <NavigationMenuPrimitive.Root
18 data-slot="navigation-menu"
19 data-viewport={viewport}
20 className={cn(
21 "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
22 className
23 )}
24 {...props}
25 >
26 {children}
27 {viewport && <NavigationMenuViewport />}
28 </NavigationMenuPrimitive.Root>
29 )
30}
31
32function NavigationMenuList({
33 className,
34 ...props
35}: React.ComponentProps<typeof NavigationMenuPrimitive.List>) {
36 return (
37 <NavigationMenuPrimitive.List
38 data-slot="navigation-menu-list"
39 className={cn(
40 "group flex flex-1 list-none items-center justify-center gap-1",
41 className
42 )}
43 {...props}
44 />
45 )
46}
47
48function NavigationMenuItem({
49 className,
50 ...props
51}: React.ComponentProps<typeof NavigationMenuPrimitive.Item>) {
52 return (
53 <NavigationMenuPrimitive.Item
54 data-slot="navigation-menu-item"
55 className={cn("relative", className)}
56 {...props}
57 />
58 )
59}
60
61const navigationMenuTriggerStyle = cva(
62 "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
63)
64
65function NavigationMenuTrigger({
66 className,
67 children,
68 ...props
69}: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>) {
70 return (
71 <NavigationMenuPrimitive.Trigger
72 data-slot="navigation-menu-trigger"
73 className={cn(navigationMenuTriggerStyle(), "group", className)}
74 {...props}
75 >
76 {children}{" "}
77 <ChevronDownIcon
78 className="relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180"
79 aria-hidden="true"
80 />
81// … truncated

What it pulls in

npm packages

  • radix-ui
  • class-variance-authority
  • lucide-react

Files it writes

  • components/ui/navigation-menu.tsx

Facts

Registry
gr8monk3ys
Type
registry:ui
Access
Free
Files written
1
Licence
GPL-3.0
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

ui.lscaturchio.xyz gr8monk3ys/ui on GitHub Raw registry item This item as JSON

More from gr8monk3ys

All 69 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordiongr8monk3ysComponentsFree2 deps
ActiveNavLinkactive-nav-linkgr8monk3ysComponentsFreeno deps · 2 files
alertalertgr8monk3ysComponentsFree1 dep
alert-dialogalert-dialoggr8monk3ysComponentsFree1 dep
aspect-ratioaspect-ratiogr8monk3ysComponentsFree1 dep
attachmentattachmentgr8monk3ysComponentsFree2 deps
Avataravatargr8monk3ysComponentsFree1 dep
Badgebadgegr8monk3ysComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex