June 13, 2026IntermediateNavigation
Pill Header Overlay
Responsive studio header with pill-shaped buttons. A logo on the left, and on the right an Info toggle that drops a bio overlay, internal nav links, and a Contact popover. Below the md breakpoint it collapses to an Info + Menu pair where Menu opens a dropdown panel. The bar hides on scroll-down and reveals on scroll-up, and a centered status slot appears at lg. Info ↓ / Close ↑ and Menu / Close labels cross-fade in place.
Preview
Source
import PillHeaderOverlay from "./index.jsx";
import styles from "./demo.module.css";
export default function PillHeaderOverlayDemo() {
return (
<div className={styles.demo}>
<PillHeaderOverlay />
<div className={styles.body}>
<p className={styles.lead}>
Scroll to hide & reveal the bar. Try Info, Contact, and — at a
narrow width — the Menu.
</p>
{Array.from({ length: 8 }).map((_, i) => (
<div key={i} className={styles.row} />
))}
</div>
</div>
);
}
Dependencies
framer-motion