BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/fulldev/ui/header-4

header-4

fulldev-ui/header-4
FreeBlock

fulldev/ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by fulldev/ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.full.dev/r/header-4.json

Source

src/components/blocks/header-4.astroui.full.dev/r/header-4.json · first 6 KB
1---
2import type { ImageMetadata } from "astro"
3import { Image } from "astro:assets"
4
5import { cn } from "@/lib/utils"
6import { Button } from "@/components/ui/button"
7import { Header, HeaderContainer, HeaderGroup } from "@/components/ui/header"
8import { Icon } from "@/components/ui/icon"
9import { Logo, LogoImage, LogoText } from "@/components/ui/logo"
10import {
11 NavigationMenu,
12 NavigationMenuContent,
13 NavigationMenuItem,
14 NavigationMenuLink,
15 NavigationMenuList,
16 NavigationMenuTrigger,
17 navigationMenuTriggerStyle,
18} from "@/components/ui/navigation-menu"
19import {
20 Sheet,
21 SheetClose,
22 SheetContent,
23 SheetDescription,
24 SheetHeader,
25 SheetTitle,
26 SheetTrigger,
27} from "@/components/ui/sheet"
28
29type Props = {
30 class?: string
31 logo: {
32 label: string
33 href: string
34 src?: any
35 srcLight?: any
36 srcDark?: any
37 alt?: string
38 }
39 navigation: {
40 label: string
41 href: string
42 description?: string
43 active?: boolean
44 image?: {
45 src: ImageMetadata
46 alt: string
47 }
48 links?: {
49 label: string
50 href: string
51 description?: string
52 icon?: string
53 active?: boolean
54 }[]
55 }[]
56 buttons: {
57 label: string
58 href: string
59 icon?: string
60 variant?: "default" | "outline" | "secondary" | "ghost"
61 }[]
62}
63
64const { class: className, logo, navigation, buttons } = Astro.props
65---
66
67<Header class={cn("border-b", className)}>
68 <HeaderContainer class="justify-between">
69 <HeaderGroup>
70 <Logo href={logo.href}>
71 <LogoImage
72 src={logo.src}
73 srcLight={logo.srcLight}
74 srcDark={logo.srcDark}
75 alt={logo.alt}
76 />
77 {logo.label && <LogoText>{logo.label}</LogoText>}
78 </Logo>
79 </HeaderGroup>
80 <NavigationMenu
81 class="absolute left-1/2 hidden max-w-none -translate-x-1/2 lg:flex"
82 align="center"
83 >
84 <NavigationMenuList>
85 {
86 navigation.map((item, index) =>
87 item.links?.length ? (
88 <NavigationMenuItem value={`nav-${index}`}>
89 <NavigationMenuTrigger>{item.label}</NavigationMenuTrigger>
90 <NavigationMenuContent>
91 <div class="grid w-[min(46rem,calc(100vw-2rem))] gap-2 p-1 lg:grid-cols-[1fr_1.1fr]">
92 <NavigationMenuLink
93 href={item.href}
94 active={item.active}
95// … truncated

What it pulls in

Other registry items

  • @fulldev/button
  • @fulldev/header
  • @fulldev/icon
  • @fulldev/logo
  • @fulldev/navigation-menu
  • @fulldev/sheet

Files it writes

  • src/components/blocks/header-4.astro

Facts

Registry
fulldev/ui
Type
registry:block
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-04
Last confirmed
today

Go to the source

Docs on fulldev/ui ui.full.dev fulldotdev/ui on GitHub Raw registry item This item as JSON

More from fulldev/ui

All 144 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
article-1article-1fulldev/uiBlocksFreeno deps
article-2article-2fulldev/uiBlocksFreeno deps
articles-1articles-1fulldev/uiBlocksFreeno deps
articles-2articles-2fulldev/uiBlocksFreeno deps
articles-3articles-3fulldev/uiBlocksFreeno deps
articles-4articles-4fulldev/uiBlocksFreeno deps
banner-1banner-1fulldev/uiBlocksFreeno deps
banner-2banner-2fulldev/uiBlocksFreeno 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