Header Menu Items
uifoundry/header-menu-itemsFreeBlock
Customizable navigation menu items component for headers
Live preview
live · rendered by the registry
Rendered by uifoundry on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://uifoundry.dev/r/header-menu-items.jsonSource
1import Link from "next/link";2import type { HeaderMenuItemsBlock } from "~/payload-types";3import { cn } from "@/registry/default/utils";45export default function MenuItems({6 mobileView = false,7 menuItems,8}: { mobileView?: boolean } & HeaderMenuItemsBlock) {9 return (10 <div className={cn("hidden lg:block", mobileView === true && "block")}>11 <ul12 className={cn(13 "flex gap-8 text-sm",14 mobileView === true && "flex-col gap-4 text-center",15 )}16 >17 {menuItems.map((item, index) => (18 <li key={index}>19 <Link20 href={item.href}21 className="text-muted-foreground hover:text-primary block duration-300"22 >23 <span>{item.label}</span>24 </Link>25 </li>26 ))}27 </ul>28 </div>29 );30}
What it pulls in
npm packages
Other registry items
Files it writes
More from uifoundry
All 54 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Color Fieldcolor-field | uifoundry | Blocks | Free | 4 deps · 2 files | |
| Coming Soon 1coming-soon-1 | uifoundry | Blocks | Free | 3 deps · 2 files | |
| CTA 1cta-1 | uifoundry | Blocks | Free | 3 deps · 2 files | |
| CTA 2cta-2 | uifoundry | Blocks | Free | 3 deps · 2 files | |
| CTA 3cta-3 | uifoundry | Blocks | Free | 3 deps · 2 files | |
| Custom Headercustom-header | uifoundry | Blocks | Free | 4 deps · 3 files | |
| Features 1features-1 | uifoundry | Blocks | Free | 3 deps · 2 files | |
| Features 2features-2 | uifoundry | Blocks | Free | 4 deps · 2 files |
