Navbar 3Retro
pixelflow-ui/navbar-3-retroFreeComponent
pixelflow-ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by pixelflow-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://pixelflowui.lok1.dev/r/navbar-3-retro.jsonSource
1"use client";23import React, { useState } from "react";4import { Menu, X } from "lucide-react";5import Link from "next/link";67const MenuItem = ({ label, href }) => {8 return (9 <Link className="relative group block" href={href}>10 <span className="block px-3 py-1 border-[2px] border-transparent group-hover:bg-black group-hover:text-white group-hover:border-black transition-all duration-200">11 {label}12 </span>13 </Link>14 );15};1617const MobileMenuItem = ({ label, href, activeView }) => {18 return (19 <Link className="relative group block w-full border-b-[2px] border-black py-4 hover:bg-black hover:text-white transition-colors duration-200 px-4" href={href}>20 <div className="flex items-center gap-4">21 <div className={`w-4 h-4 border-[2px] border-current ${activeView === href ? "bg-current" : ""}`}></div>22 <span className="text-xl md:text-3xl font-bold uppercase tracking-wider">{label}</span>23 </div>24 </Link>25 );26};2728export function NavbarRetro() {29 const [isSidebarOpen, setIsSidebarOpen] = useState(false);30 const [activeView, setActiveView] = useState("/components/navbars");3132 const menuItems = [33 { label: "Navbars", href: "/components/navbars" },34 { label: "Loaders", href: "/components/loaders" },35 { label: "Lists", href: "/components/lists" },36 ];3738 return (39 <div className="flex justify-center items-center absolute top-0 left-0 w-full z-10 font-mono text-black">40 <div className="mx-7 my-4 w-full flex items-center justify-between h-full relative">41 <button42 onClick={() => setIsSidebarOpen(!isSidebarOpen)}43 className="nav-left px-3 py-1 border-[2px] border-black bg-white hover:bg-black hover:text-white cursor-pointer transition-colors"44 >45 <div className="flex items-center gap-2 font-bold uppercase">46 <Menu strokeWidth={3} className="w-5 h-5" />47 <span className="hidden md:inline">Menu</span>48 </div>49 </button>5051 <div className="nav-middle md:flex flex-1 justify-center items-center border-[2px] border-black bg-white px-3 mx-4 py-2 gap-3 uppercase text-xs font-bold hidden shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]">52 {menuItems.map((item, index) => (53 <MenuItem key={index} label={item.label} href={item.href} />54 ))}55 </div>5657// … truncated
What it pulls in
npm packages
Files it writes
More from pixelflow-ui
All 35 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordion Lyraaccordion-lyra | pixelflow-ui | Components | Free | 3 deps | |
| Accordion Novaaccordion-nova | pixelflow-ui | Components | Free | 3 deps | |
| Accordion Retroaccordion-retro | pixelflow-ui | Components | Free | 3 deps | |
| Background 1background-1 | pixelflow-ui | Components | Free | no deps | |
| Background 1Retrobackground-1-retro | pixelflow-ui | Components | Free | no deps | |
| Bouncy Input Lyrabouncy-input-lyra | pixelflow-ui | Components | Free | 1 dep | |
| Bouncy Input Novabouncy-input-nova | pixelflow-ui | Components | Free | 1 dep | |
| Bouncy Input Retrobouncy-input-retro | pixelflow-ui | Components | Free | 1 dep |
