Files
shadcn/app/registry/default/example/advanced-navigation-bar-demo.tsx
zeekay 1eac33eabc fix: Add proper demo data to 10 component demos
- 3d-carousel-demo: Added 3 carousel items with gradient content
- 3d-grid-demo: Added 6 grid items with colors, spans, and elevation
- 3d-marquee-demo: Added scrolling text content with icons
- 3d-text-demo: Added 3D text with metallic variant
- animated-number-demo: Added revenue counter with ,456
- animated-testimonials-demo: Added 3 testimonials with authors
- animated-list-demo: Added 3 notification items
- ai-models-demo: Added GPT-4, Claude, Gemini models
- ai-actions-demo: Added 4 AI action buttons
- advanced-navigation-bar-demo: Added nav items with dropdowns

All demos now have required props, resolving 10 TypeScript errors.
2025-11-06 00:22:54 -08:00

48 lines
927 B
TypeScript

import { AdvancedNavigationBar } from "@/registry/default/ui/advanced-navigation-bar"
const navItems = [
{
title: "Products",
href: "/products",
description: "Browse our product catalog",
children: [
{
title: "All Products",
href: "/products/all",
},
{
title: "New Arrivals",
href: "/products/new",
},
{
title: "Best Sellers",
href: "/products/best",
},
],
},
{
title: "Solutions",
href: "/solutions",
description: "Find the right solution for your needs",
},
{
title: "Pricing",
href: "/pricing",
},
{
title: "About",
href: "/about",
},
]
export default function AdvancedNavigationBarDemo() {
return (
<div className="w-full">
<AdvancedNavigationBar
items={navItems}
logo={<span className="font-bold text-xl">Logo</span>}
/>
</div>
)
}