Header Three
navdeep-singh/header-threeFreeBlock
Header Three — Header block.
Install it
npx shadcn@latest add https://ui.navdeepsingh.dev/r/header-three.jsonSource
1'use client'23import Link from 'next/link'4import {5 ArrowRight,6 BarChart3,7 BookOpen,8 Building2,9 ChevronDown,10 LayoutDashboard,11 Menu,12 NfcIcon,13 PlugZap,14 ShieldCheck,15 Users,16 X,17} from 'lucide-react'18import React from 'react'1920import { Button } from '@/components/ui/button'21import {22 NavigationMenu,23 NavigationMenuContent,24 NavigationMenuItem,25 NavigationMenuLink,26 NavigationMenuList,27 NavigationMenuTrigger,28} from '@/components/ui/navigation-menu'29import { cn } from '@/lib/utils'3031const menuItems = [32 {33 name: 'Features',34 href: '#features',35 children: [36 {37 name: 'Dashboard',38 description: 'Track payments and revenue',39 href: '#dashboard',40 icon: LayoutDashboard,41 },42 {43 name: 'Integrations',44 description: 'Connect your payment stack',45 href: '#integrations',46 icon: PlugZap,47 },48 {49 name: 'Security',50 description: 'Built-in fraud protection',51 href: '#security',52 icon: ShieldCheck,53 },54 ],55 },56 {57 name: 'Solutions',58 href: '#solutions',59 children: [60 {61 name: 'Startups',62 description: 'Launch payments faster',63 href: '#startups',64 icon: Building2,65 },66 {67 name: 'Teams',68 description: 'Manage payment operations',69 href: '#teams',70 icon: Users,71 },72 {73 name: 'Analytics',74 description: 'Understand your growth',75 href: '#analytics',76 icon: BarChart3,77 },78 ],79 },80 { name: 'Pricing', href: '#pricing' },81 { name: 'Docs', href: '#docs', icon: BookOpen },82]8384export default function HeaderThree() {85 const [menuState, setMenuState] = React.useState(false)86 const [isScrolled, setIsScrolled] = React.useState(false)87 const [openDropdown, setOpenDropdown] = React.useState('')88 const [mobileDropdown, setMobileDropdown] = React.useState<string | null>(null)8990 React.useEffect(() => {91 const handleScroll = () => {92 setIsScrolled(window.scrollY > 24)93 }9495 handleScroll()9697 window.addEventListener('scroll', handleScroll, { passive: true })9899 return () => window.removeEventListener('scroll', handleScroll)100 }, [])101102 const toggleMobileDropdown = (name: string) => {103 setMobileDropdown((current) => (current === name ? null : name))104 }105106 const toggleMobileMenu = () => {107 const nextMenuState = !menuState108109 setMenuState(nextMenuState)110111 if (!nextMenuState) {112// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from navdeep-singh
All 64 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Blog Section Oneblog-section-one | navdeep-singh | Blocks | Free | 1 dep | |
| Contact Section Fourcontact-section-four | navdeep-singh | Blocks | Free | no deps | |
| Contact Section Onecontact-section-one | navdeep-singh | Blocks | Free | 1 dep | |
| Contact Section Threecontact-section-three | navdeep-singh | Blocks | Free | no deps | |
| Contact Section Twocontact-section-two | navdeep-singh | Blocks | Free | no deps | |
| Content Section Fourcontent-section-four | navdeep-singh | Blocks | Free | 1 dep | |
| Content Section Onecontent-section-one | navdeep-singh | Blocks | Free | 1 dep | |
| Content Section Threecontent-section-three | navdeep-singh | Blocks | Free | 2 deps |
