Mega Header
A marketing header with one shared mega menu panel that morphs between menus, a gliding hover pill, a bar that shrinks into a floating pill on scroll, and a sheet menu on narrow widths.
pixikit.com/docs/blocks/navigation/mega-header
Customize
Open delay80ms
Close delay160ms
Sticky
Shrink
Align
Contained
Props
12| Name | Type | Default | Description |
|---|---|---|---|
items | MegaHeaderItem[] | DEFAULT_ITEMS | The bar items, left to right. An item with `groups` opens the shared panel. |
name | string | "Northwind" | The brand name in the default brand. |
brand | ReactNode | None | Replaces the default brand at the left. |
actions | ReactNode | None | Replaces the default sign in link and button at the right. |
openDelay | number | 80 | Milliseconds the pointer rests on a menu item before the panel opens. |
closeDelay | number | 160 | Milliseconds the panel stays after the pointer leaves the bar and panel. |
sticky | boolean | true | Sticks the header to the top of its scroll container. |
shrink | boolean | true | Turns the bar into a compact floating bar once the container has scrolled. |
align | "start" | "center" | "center" | Where the links sit in the bar. |
contained | boolean | false | Opens the small-screen menu inside the scroll container instead of on the page. |
menuLabel | string | "Menu" | Hidden label of the menu button on small screens. |
className | string | None | Extra classes for the root. |