{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "luma-bar", "type": "registry:ui", "title": "Luma Bar", "description": "A sleek navigation bar with Luma-inspired design and interactions.", "dependencies": [ "motion", "lucide-react" ], "files": [ { "path": "registry/ruixenui/luma-bar.tsx", "content": "\"use client\";\n\nimport React, { useState } from \"react\";\nimport { motion } from \"motion/react\";\nimport { Home, Search, Bell, User, Settings, Bookmark } from \"lucide-react\";\n\ninterface NavItem {\n id: number;\n icon: React.ReactNode;\n label: string;\n}\n\nconst items: NavItem[] = [\n { id: 0, icon: , label: \"Home\" },\n { id: 1, icon: , label: \"Search\" },\n { id: 2, icon: , label: \"Alerts\" },\n { id: 3, icon: , label: \"Profile\" },\n { id: 4, icon: , label: \"Saved\" },\n { id: 5, icon: , label: \"Settings\" },\n];\n\nconst LumaBar = () => {\n const [active, setActive] = useState(0);\n\n return (\n
\n
\n {/* Active Indicator Glow */}\n \n\n {items.map((item, index) => {\n const isActive = index === active;\n return (\n \n {/* Button */}\n setActive(index)}\n whileHover={{ scale: 1.2 }}\n animate={{ scale: isActive ? 1.4 : 1 }}\n className=\"flex items-center justify-center w-14 h-14 text-gray-600 dark:text-gray-300 hover:text-blue-500 dark:hover:text-blue-400 relative z-10\"\n >\n {item.icon}\n \n\n {/* Tooltip */}\n \n {item.label}\n \n \n );\n })}\n
\n
\n );\n};\n\nexport default LumaBar;\n", "type": "registry:ui", "target": "components/ruixen/luma-bar.tsx" } ] }