About
A page title with room around it that hands over to a compact sticky bar as the reader scrolls.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Scroll Header to your project and fits it to your theme.
Code
How Scroll Header is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import { useRef } from 'react';
import { ScrollHeader } from '@/components/ui/panel-scroll-header';
export default function ScrollHeaderThumb() {
const scroller = useRef<HTMLDivElement>(null);
return (
<div
ref={scroller}
className="w-72 shrink-0 overflow-hidden rounded-2xl border bg-background"
>
<ScrollHeader barHeight={40} scrollRef={scroller}>
<ScrollHeader.Cover />
<ScrollHeader.Bar>
<ScrollHeader.Title>Field notes</ScrollHeader.Title>
</ScrollHeader.Bar>
<ScrollHeader.Large>
<ScrollHeader.Description>Issue 12 · November</ScrollHeader.Description>
<ScrollHeader.Title>Field notes</ScrollHeader.Title>
</ScrollHeader.Large>
</ScrollHeader>
</div>
);
}








