BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/efferd/header-3

header-3

efferd/header-3
FreeBlock

Feature-rich responsive header with scroll blur, animated mobile drawer, and nested navigation menus.

Install it

npx shadcn@latest add https://legacy.efferd.com/r/header-3.json

Source

registry/blocks/header/3/header.tsxlegacy.efferd.com/r/header-3.json · first 6 KB
1"use client";
2import {
3 BarChart,
4 CodeIcon,
5 FileText,
6 GlobeIcon,
7 Handshake,
8 HelpCircle,
9 LayersIcon,
10 Leaf,
11 type LucideIcon,
12 PlugIcon,
13 RotateCcw,
14 Shield,
15 Star,
16 UserPlusIcon,
17 Users,
18} from "lucide-react";
19import React from "react";
20import { createPortal } from "react-dom";
21import { Logo } from "@/components/logo";
22import { MenuToggleIcon } from "@/components/menu-toggle-icon";
23import { Button } from "@/components/ui/button";
24import {
25 NavigationMenu,
26 NavigationMenuContent,
27 NavigationMenuItem,
28 NavigationMenuLink,
29 NavigationMenuList,
30 NavigationMenuTrigger,
31} from "@/components/ui/navigation-menu";
32import { useScroll } from "@/hooks/use-scroll";
33import { cn } from "@/lib/utils";
34
35type LinkItem = {
36 title: string;
37 href: string;
38 icon: LucideIcon;
39 description?: string;
40};
41
42export function Header() {
43 const [open, setOpen] = React.useState(false);
44 const scrolled = useScroll(10);
45
46 React.useEffect(() => {
47 if (open) {
48 document.body.style.overflow = "hidden";
49 } else {
50 document.body.style.overflow = "";
51 }
52 return () => {
53 document.body.style.overflow = "";
54 };
55 }, [open]);
56
57 return (
58 <header
59 className={cn("sticky top-0 z-50 w-full border-transparent border-b", {
60 "border-border bg-background/95 backdrop-blur-lg supports-[backdrop-filter]:bg-background/50":
61 scrolled,
62 })}
63 >
64 <nav className="mx-auto flex h-14 w-full max-w-5xl items-center justify-between px-4">
65 <div className="flex items-center gap-5">
66 <a className="rounded-md p-2 hover:bg-accent" href="#">
67 <Logo className="h-4" />
68 </a>
69 <NavigationMenu className="hidden md:flex">
70 <NavigationMenuList>
71 <NavigationMenuItem>
72 <NavigationMenuTrigger className="bg-transparent">
73 Product
74 </NavigationMenuTrigger>
75 <NavigationMenuContent className="bg-muted/50 p-1 pr-1.5 dark:bg-background">
76 <ul className="grid w-lg grid-cols-2 gap-2 rounded-md border bg-popover p-2 shadow">
77 {productLinks.map((item, i) => (
78 <li key={i}>
79 <ListItem {...item} />
80 </li>
81 ))}
82 </ul>
83 <div className="p-2">
84 <p className="text-muted-foreground text-sm">
85 Interested?{" "}
86 <a
87// … truncated

What it pulls in

Other registry items

  • button
  • navigation-menu

Files it writes

  • registry/blocks/header/3/header.tsx
  • components/logo.tsx
  • components/menu-toggle-icon.tsx
  • hooks/use-scroll.ts

Facts

Registry
efferd
Type
registry:block
Access
Free
Files written
4
Licence
NOASSERTION
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

legacy.efferd.com shabanhr/efferd-ui on GitHub Raw registry item This item as JSON

More from efferd

All 40 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
auth-1auth-1efferdBlocksFreeno deps · 2 files
auth-2auth-2efferdBlocksFree1 dep · 3 files
contact-1contact-1efferdBlocksFreeno deps
contact-2contact-2efferdBlocksFreeno deps
cta-1cta-1efferdBlocksFreeno deps
cta-2cta-2efferdBlocksFreeno deps
cta-3cta-3efferdBlocksFreeno deps
cta-4cta-4efferdBlocksFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex