Animated Navbar
tripled/animated-navbar-shadcnuiFreeComponent
Navigation bar with animated underline indicator
Install it
npx shadcn@latest add https://ui.tripled.work/r/animated-navbar-shadcnui.jsonSource
1"use client";23import { motion } from "framer-motion";4import { useState } from "react";56const navItems = ["Home", "About", "Services", "Contact"];78export function AnimatedNavbar() {9 const [activeIndex, setActiveIndex] = useState(0);1011 return (12 <nav className="rounded-2xl border bg-[var(--card-bg)] p-2">13 <ul className="flex gap-1">14 {navItems.map((item, index) => (15 <li key={item} className="relative">16 <motion.button17 onClick={() => setActiveIndex(index)}18 className="relative z-10 px-4 py-2 text-sm font-medium transition-colors"19 style={{20 color: activeIndex === index ? "white" : "var(--foreground)",21 }}22 whileHover={{ scale: 1.05 }}23 whileTap={{ scale: 0.95 }}24 >25 {item}26 </motion.button>27 {activeIndex === index && (28 <motion.div29 layoutId="navbar-indicator"30 className="absolute inset-0 rounded-lg bg-accent"31 transition={{32 type: "spring",33 stiffness: 380,34 damping: 30,35 }}36 />37 )}38 </li>39 ))}40 </ul>41 </nav>42 );43}
What it pulls in
npm packages
Other registry items
Files it writes
More from tripled
All 282 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| AI Chat Interfaceai-chat-interface-shadcnui | tripled | Components | Free | 2 deps | |
| AI Glow Inputai-glow-input-shadcnui | tripled | Components | Free | 2 deps | |
| AI Loading Skeletonai-loading-skeleton-shadcnui | tripled | Components | Free | 2 deps | |
| AI Response Typing Streamai-response-typing-shadcnui | tripled | Components | Free | 2 deps | |
| AI Unlock Animationai-unlock-animation-shadcnui | tripled | Components | Free | 2 deps | |
| Animated Accordionanimated-accordion-shadcnui | tripled | Components | Free | 2 deps | |
| Animated Card Stackanimated-card-stack-baseui | tripled | Components | Free | 2 deps | |
| Animated Card Stackanimated-card-stack-shadcnui | tripled | Components | Free | 2 deps |
