Site header
CoreBlockA 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.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
variant | SiteHeaderVariant | — |
brand | { name: string; href?: string; mark?: ReactNode } | — |
items | SiteHeaderItem[] | — |
current | string | — |
defaultCurrent | string | — |
onCurrentChange | (value: string) => void | — |
onNavigate | (destination: SiteHeaderDestination) => void | — |
secondaryAction | SiteHeaderAction | null | — |
primaryAction | SiteHeaderAction | null | — |
sticky | boolean | — |
scrollContainer | RefObject<HTMLElement | null> | — |
scrollThreshold | number | — |
label | string | — |
className | string | — |