Site header

Site header: A sticky website header that turns solid on scroll, with a gliding active link, mega menu panels, and a mobile sheet. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Site header

npx motion-ui-skill add site-header

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • motion
  • next
  • react
  • tailwind-merge

Source files

A sticky website header that turns solid on scroll, with a gliding active link, mega menu panels, and a mobile sheet.

Install

npx motion-ui-skill add site-header

Dependencies

  • clsx
  • lucide-react
  • motion
  • next
  • react
  • tailwind-merge

Usage

"use client";

import { SiteHeader as SiteHeader } from "@/components/blocks/site-header";

export function Example() {
  return (
    <div className="p-6">
      <SiteHeader />
    </div>
  );
}

Browse this category