Site header

CoreBlock

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

pnpm dlx shadcn@latest add https://wui.alann.works/r/site-header.json

Product

API Reference

PropTypeDefault
variantSiteHeaderVariant—
brand{ name: string; href?: string; mark?: ReactNode }—
itemsSiteHeaderItem[]—
currentstring—
defaultCurrentstring—
onCurrentChange(value: string) => void—
onNavigate(destination: SiteHeaderDestination) => void—
secondaryActionSiteHeaderAction | null—
primaryActionSiteHeaderAction | null—
stickyboolean—
scrollContainerRefObject<HTMLElement | null>—
scrollThresholdnumber—
labelstring—
classNamestring—
Categories
blocks
Dependencies
lucide-reactmotion