Join our Discord community
Navbar

Underline Navigation Bar

Modern navigation bar with elegant underline hover effects and clean design. Features responsive mobile menu, smooth transitions, and TypeScript support for React applications.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/navbar-03.json
npx shadcn@latest add https://www.shadcn.io/registry/navbar-03.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/navbar-03.json
bunx shadcn@latest add https://www.shadcn.io/registry/navbar-03.json

Features

  • Elegant underline effects with smooth scale animations on hover and active states
  • Clean minimal design with optimal spacing and typography using shadcn/ui components
  • Container-based responsive design with automatic mobile/desktop switching based on actual width
  • TypeScript support with comprehensive interface definitions and type-safe props
  • Customizable navigation structure with flexible menu configuration and active state management
  • shadcn/ui integration using design tokens and consistent styling patterns

Use Cases

This free open source React component works well for:

  • Modern web applications - Clean navigation systems built with Next.js and TypeScript
  • Portfolio websites - Professional navigation with subtle hover animations using Tailwind CSS
  • Landing pages - Minimalist navigation that doesn't distract from content
  • Corporate websites - Professional appearance with smooth interactive elements

API Reference

PropTypeDefaultDescription
logoReact.ReactNode<Logo />Logo component to display in the navbar
logoHrefstring"#"URL for logo click navigation
navigationLinksNavbar03NavItem[]defaultNavigationLinksArray of navigation menu items with active state support
signInTextstring"Sign In"Text for the sign-in button
ctaTextstring"Get Started"Text for the call-to-action button
onSignInClick() => voidundefinedCallback function for sign-in button clicks
onCtaClick() => voidundefinedCallback function for CTA button clicks
  • Simple Links - Basic navigation items with href, label, and optional active state
  • Active State Management - Automatic highlighting with underline animation for current page
  • Hover Effects - Smooth scale-based underline animations on menu item hover
  • Mobile Optimization - Responsive menu with consistent styling across devices

Implementation Notes

  • Uses ResizeObserver for container-based responsive behavior independent of viewport
  • Supports keyboard navigation and accessibility standards through Radix UI components
  • Mobile menu automatically appears when container width is less than 768px
  • All navigation items are non-functional for demonstration purposes with pointer cursor
  • Compatible with shadcn/ui design system and Tailwind CSS styling framework
  • Features smooth CSS transform animations with optimized performance