BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcncraft/top-navigation-5

Top Navigation 5 – Minimal center-aligned links with inline auth

shadcncraft/top-navigation-5
FreeBlock

A stripped-back, center-aligned top navigation that prioritizes clarity and whitespace. Primary links sit in a single horizontal row with the brand anchored to the left and a lightweight login action on the right. On small screens, the layout collapses into a simple slide-out menu with stacked links and a single secondary action, keeping the structure familiar while reducing visual noise.

Install it

npx shadcn@latest add https://shadcncraft.com/r/top-navigation-5.json

Source

blocks/pro-marketing/top-navigation/top-navigation-5/index.tsxshadcncraft.com/r/top-navigation-5.json
1"use client";
2
3import { useRef, useState } from "react";
4
5import { cn } from "@/lib/utils";
6import { IconPlaceholder } from "@/registry/icons/icon-placeholder";
7import { useClickOutside } from "@/hooks/use-click-outside";
8import { useIsMobile } from "@/hooks/use-mobile";
9import { Button } from "@/components/ui/button";
10import {
11 NavigationMenu,
12 NavigationMenuItem,
13 NavigationMenuLink,
14 NavigationMenuList,
15 navigationMenuTriggerStyle,
16} from "@/components/ui/navigation-menu";
17import {
18 MobileNavigationMenu,
19 MobileNavigationMenuItem,
20 MobileNavigationMenuLink,
21 MobileNavigationMenuList,
22 mobileNavigationMenuTriggerStyle,
23} from "@/components/shadcncraft/pro-marketing/mobile-navigation-menu";
24import { PlaceholderLogo } from "@/components/shadcncraft/pro-marketing/placeholder-logo";
25
26// Defaults to Tailwind's md: breakpoint.
27// Change to 1024 + use lg: classes for 1024px breakpoint or whatever breakpoint you want to use
28const MOBILE_BREAKPOINT = 768;
29
30export function TopNavigation5() {
31 const [isMenuOpen, setIsMenuOpen] = useState(false);
32 const toggleMenu = () => setIsMenuOpen((prev) => !prev);
33
34 const navigationContainerRef = useRef<HTMLDivElement>(null);
35 const isMobile = useIsMobile(MOBILE_BREAKPOINT);
36
37 useClickOutside(navigationContainerRef, () => {
38 if (isMobile && isMenuOpen) {
39 setIsMenuOpen(false);
40 }
41 });
42
43 return (
44 // To make this a sticky navigation, you can add `sticky top-0 z-50` classes to the parent div
45 <div
46 className="w-full bg-background py-3.5 transition-all ease-in-out"
47 role="navigation"
48 aria-label="Website top navigation"
49 ref={navigationContainerRef}
50 >
51 <div className="relative mx-auto flex max-w-7xl flex-col justify-between px-6 md:flex-row lg:gap-10 lg:px-10">
52 {/* Logo and Toggle Mobile Nav Button */}
53 <div className="flex items-center justify-between">
54 {/* Replace with actual logo */}
55 <a href="/" aria-label="Go to home page">
56 <PlaceholderLogo />
57 </a>
58
59 {/* Toggle Mobile Nav Button - Visible on screen sizes < 768px */}
60 <Button
61 variant="ghost"
62 size="icon"
63 className="md:hidden"
64 onClick={toggleMenu}
65 aria-label={isMenuOpen ? "Close navigation menu" : "Open navigation menu"}
66 >
67 {isMenuOpen ? (
68 <IconPlaceholder
69 lucide="X"
70 tabler="IconX"
71// … truncated

What it pulls in

Other registry items

  • button
  • @shadcncraft/placeholder-logo
  • @shadcncraft/use-click-outside
  • @shadcncraft/use-mobile

Files it writes

  • blocks/pro-marketing/top-navigation/top-navigation-5/index.tsx

Facts

Registry
shadcncraft
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-07
Last confirmed
today

Go to the source

shadcncraft.com Raw registry item This item as JSON

More from shadcncraft

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Banner 10 – Inline announcement linkbanner-10shadcncraftBlocksFreeno deps
Benefits 13 – Card grid with section headerbenefits-13shadcncraftBlocksFreeno deps
Contact 11 – Centered form with supporting sidebarcontact-11shadcncraftBlocksFreeno deps
FAQ 4 – Centered accordion with supporting panelfaqs-4shadcncraftBlocksFreeno deps
Footer 4 – Brand-led sitemap footerfooter-4shadcncraftBlocksFree1 dep
Newsletter Signup 5 – Inline callout with contained formnewsletter-signup-5shadcncraftBlocksFreeno deps
Testimonial 11 – Editorial quote gridtestimonials-11shadcncraftBlocksFreeno deps

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