• Docs
  • Components
  • Blocks
  • Admin
CtrlK
Get Started
  • Introduction
  • Setup
  • CLI
  • VS Code Extension
  • Figma Code Connect
  • MCP Server
  • llms.txt
  • Changelog
Foundations
  • Design Tokens
  • Theming & Modes
  • Semantic Colors
  • Spacing
  • Typography
Testing
  • Test Guide
  • Performance Tests
  • Visual Regression
Components
  • Accordion
  • Activity Feed
  • Alert
  • Avatar
  • Badge
  • Breadcrumbs
  • Button
  • Card
  • Carousel
  • Checkbox
  • Collapsible
  • Combobox
  • Command Palette
  • Context Menu
  • Date Picker
  • Dialog
  • Dropdown Menu
  • File Upload
  • Hover Card
  • Input
  • Kbd
  • Label
  • Menubar
  • Metric Card
  • Multi Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Quick Actions
  • Radio
  • Rating
  • Resizable
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Skeleton
  • Slider
  • Spinner
  • Split Button
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree View
Blocks
  • Activity Feed
  • App Shell
  • Authentication Block
  • Benefits Section
  • Cta Section
  • Data Table
  • Empty State
  • Faq Section
  • Feature Grid Section
  • Footer Section
  • Hero Section
  • Kpi Dashboard
  • Kpi Strip
  • Link Card
  • Metric Card
  • Navigation Header
  • Pagination Footer
  • Pricing Table
  • Quick Actions
  • Settings Screen
Resources
  • API Reference
Metric CardPagination Footer
Metric CardPagination Footer
Metric CardPagination Footer

Navigation Header

A top navigation header for the app.

Overview

Install

npx shadcn@latest add /r/navigation-header.json

Examples

Fragment UI
DocsComponentsBlocks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

Features

  • Sticky header that stays at top on scroll
  • Logo with optional link
  • Desktop navigation menu
  • Mobile hamburger menu
  • Custom action buttons/links
  • Fully responsive design
  • Keyboard accessible navigation

Props

  • logo - Optional logo element (React node)
  • logoText - Logo text (default: "Fragment UI")
  • logoHref - Logo link URL (default: "/")
  • links - Array of navigation links (default: Components, Blocks, Docs)
  • actions - Custom action buttons/links (default: Sign In, Get Started)
  • mobileMenu - Enable/disable mobile menu (default: true)

Link Structure

interface Link {
  href: string;
  label: string;
}

Accessibility

The header uses semantic navigation elements, proper ARIA landmarks, and is fully keyboard accessible. Mobile menu includes focus management.