kalil0321

collapsible header

Component

About

A collapsible header that collapses on scroll

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

Code

How collapsible header is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Component } from "@/components/ui/collapsible-header";

const DemoOne = () => {
  return (
    <div className="flex flex-col w-full min-h-screen justify-center items-center">
      <Component />
      <div className="min-h-screen">
       
        </div>
    </div>
  );
};

export { DemoOne };

Dependencies