Navbar
launchui/navbarFreeBlock
A responsive navigation bar with mobile menu support and customizable links.
Install it
npx shadcn@latest add https://www.launchuicomponents.com/r/navbar.jsonSource
1import * as React from "react";23import { cn } from "@/lib/utils";45function Navbar({ className, ...props }: React.ComponentProps<"nav">) {6 return (7 <nav8 data-slot="navbar"9 className={cn("flex items-center justify-between py-4", className)}10 {...props}11 />12 );13}1415function NavbarLeft({ className, ...props }: React.ComponentProps<"div">) {16 return (17 <div18 data-slot="navbar-left"19 className={cn("flex items-center justify-start gap-4", className)}20 {...props}21 />22 );23}2425function NavbarRight({ className, ...props }: React.ComponentProps<"div">) {26 return (27 <div28 data-slot="navbar-right"29 className={cn("flex items-center justify-end gap-4", className)}30 {...props}31 />32 );33}3435function NavbarCenter({ className, ...props }: React.ComponentProps<"div">) {36 return (37 <div38 data-slot="navbar-center"39 className={cn("flex items-center justify-center gap-4", className)}40 {...props}41 />42 );43}4445export { Navbar, NavbarCenter, NavbarLeft, NavbarRight };
What it pulls in
npm packages
Other registry items
Files it writes
More from launchui
All 24 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Bento Gridbento-grid | launchui | Blocks | Free | 1 dep | |
| Carouselcarousel | launchui | Blocks | Free | 5 deps | |
| CTA Sectioncta | launchui | Blocks | Free | 1 dep · 4 files | |
| FAQ Sectionfaq | launchui | Blocks | Free | 2 deps · 2 files | |
| Feature Sectionfeature | launchui | Blocks | Free | 2 deps | |
| Footerfooter | launchui | Blocks | Free | 3 deps · 6 files | |
| Gallerygallery | launchui | Blocks | Free | 2 deps | |
| Hero Sectionhero | launchui | Blocks | Free | 3 deps · 8 files |
