BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uifoundry/header-5

Header 5

uifoundry/header-5
UnverifiedBlock

Header 5 Block with fixed backdrop blur and border bottom

Install it

npx shadcn@latest add https://raw.githubusercontent.com/UIFoundry/uifoundry/master/header-5.json

Source

registry/payload/blocks/header/header-5/index.tsxraw.githubusercontent.com/UIFoundry/uifoundry/master/header-5.json
1/**
2 * Header 5 Component
3 *
4 * Source: https://tailark.com/r/hero-section-4.json (header.tsx)
5 * License: Free Tier
6 * Adapted from: Tailark Hero Section 4 - Header Component
7 *
8 * Modifications:
9 * - Integrated with PayloadCMS block system
10 * - Replaced hardcoded menuItems with dynamic props from Header_5_Block
11 * - Replaced Logo component with Home icon from lucide-react
12 * - Added preview prop support for admin panel rendering
13 * - Preserved backdrop blur and border styling
14 */
15
16"use client";
17
18import Link from "next/link";
19import { Menu, X } from "lucide-react";
20import { Button } from "@/registry/ui/button";
21import React from "react";
22import { cn } from "@/registry/default/utils";
23import type {
24 Header_5_Block,
25 MediaField as MediaFieldProps,
26} from "~/payload-types";
27import type { ComponentPropsWithRef } from "react";
28import MediaField from "@/registry/default/lib/fields/media";
29
30export * from "./config";
31
32export default function Header_5({
33 preview = false,
34 brandLogo,
35 logoHref,
36 menuItems,
37 actionButtons,
38 ...navProps
39}: { preview?: boolean } & Header_5_Block & ComponentPropsWithRef<"nav">) {
40 const [menuState, setMenuState] = React.useState(false);
41
42 return (
43 <header className="border-b">
44 <nav
45 data-state={menuState && "active"}
46 className={cn(
47 "bg-background/50 fixed z-20 w-full",
48 preview && "relative",
49 )}
50 {...navProps}
51 >
52 <div className="mx-auto max-w-6xl px-6 transition-all duration-300">
53 <div className="relative flex flex-wrap items-center justify-between gap-6 py-3 lg:gap-0 lg:py-4">
54 <div className="flex w-full items-center justify-between gap-12 lg:w-auto">
55 {brandLogo && (
56 <Link
57 href={logoHref}
58 aria-label="home"
59 className="relative h-8 w-24 lg:w-32"
60 >
61 <MediaField
62 media={brandLogo as MediaFieldProps}
63 fill
64 className="object-contain object-left"
65 />
66 </Link>
67 )}
68
69 <button
70 onClick={() => setMenuState(!menuState)}
71 aria-label={menuState == true ? "Close Menu" : "Open Menu"}
72 aria-expanded={menuState}
73 aria-controls="mobile-menu"
74 className="relative z-20 -m-2.5 -mr-4 block cursor-pointer p-2.5 lg:hidden"
75 >
76 <Menu className="m-auto size-6 duration-200 in-data-[state=active]:scale-0 in-data-[state=active]:rotate-180 in-data-[state=active]:opacity-0" />
77// … truncated

What it pulls in

npm packages

  • payload
  • next
  • react
  • lucide-react

Other registry items

  • @uifoundry/style-utils
  • @uifoundry/media-field
  • @uifoundry/block-constants
  • button

Files it writes

  • registry/payload/blocks/header/header-5/config.ts
  • registry/payload/blocks/header/header-5/index.tsx

Facts

Registry
uifoundry
Type
registry:block
Access
Unverified
Files written
2
Licence
NOASSERTION
In the index
at or before 2026-08-01
Last confirmed
3 days ago

Go to the source

uifoundry.dev UIFoundry/uifoundry on GitHub Raw registry item This item as JSON

More from uifoundry

All 54 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Color Fieldcolor-fielduifoundryBlocksUnverified4 deps · 2 files
Coming Soon 1coming-soon-1uifoundryBlocksUnverified3 deps · 2 files
CTA 1cta-1uifoundryBlocksUnverified3 deps · 2 files
CTA 2cta-2uifoundryBlocksUnverified3 deps · 2 files
CTA 3cta-3uifoundryBlocksUnverified3 deps · 2 files
Custom Headercustom-headeruifoundryBlocksUnverified4 deps · 3 files
Features 1features-1uifoundryBlocksUnverified3 deps · 2 files
Features 2features-2uifoundryBlocksUnverified4 deps · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex