Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsMegaHeaderItem[]DEFAULT_ITEMSThe bar items, left to right. An item with `groups` opens the shared panel.
namestring"Northwind"The brand name in the default brand.
brandReactNodeNoneReplaces the default brand at the left.
actionsReactNodeNoneReplaces the default sign in link and button at the right.
openDelaynumber80Milliseconds the pointer rests on a menu item before the panel opens.
closeDelaynumber160Milliseconds the panel stays after the pointer leaves the bar and panel.
stickybooleantrueSticks the header to the top of its scroll container.
shrinkbooleantrueTurns the bar into a compact floating bar once the container has scrolled.
align"start" | "center""center"Where the links sit in the bar.
containedbooleanfalseOpens the small-screen menu inside the scroll container instead of on the page.
menuLabelstring"Menu"Hidden label of the menu button on small screens.
classNamestringNoneExtra classes for the root.

Related