Navbar Sticky
Sticky top navigation bar with scroll-aware transparency and optional actions.
Scroll the page to preview the transparency shift.
Pair with hero content or dashboards for a clean entry.
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/navbar-sticky.tsx
Installation
Using shadcn CLI
npx shadcn add navbar-sticky --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-mergeRelated Navigation Components
Accordion
Collapsible sections with smooth height animation and accessible controls.
Bottom Nav Bar
Mobile-style bottom navigation with icons, labels, and active state.
Breadcrumb Dropdown
Breadcrumbs with an overflow dropdown for deep navigation paths.
Breadcrumb Trail
Animated breadcrumbs with an overflow dropdown for longer navigation paths.
Breadcrumbs
Navigation breadcrumbs with separators, current page styling, and optional collapse.
Collapsible
Expandable content section with animated open/close transitions.