Diar Muradi

Sticky Header Navbar

Sign-in 26

About

A sticky site header with a centered pill-shaped nav bar, logo, sign in/up buttons, and an animated dropdown mobile menu.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sticky Header Navbar to your project and fits it to your theme.

Code

How Sticky Header Navbar is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import SiteHeader from "@/components/ui/header-2";

export default function HeaderDemo() {
  return (
    <div className="w-full">
      <SiteHeader />
    </div>
  );
}

Dependencies