Skip to content
PixiKit

Pill Header

A floating pill header that tightens and deepens its shadow on scroll, glides a highlight under its links, and unfolds its menu out of the pill on narrow widths.

pixikit.com/docs/blocks/navigation/pill-header

Customize

Scroll target
Shrink at24px
Hide on scroll

Props

11
NameTypeDefaultDescription
brandReactNodeDEFAULT_BRANDReplaces the default mark and name at the left.
brandHrefstring"/"Where the brand links to.
linksPillHeaderLink[]DEFAULT_LINKSThe links in the middle, left to right.
actionPillHeaderActionDEFAULT_ACTIONThe main button at the right. It renders only when set.
secondaryPillHeaderActionDEFAULT_SECONDARYThe quiet link before the button; it fades out when the pill tightens.
scrollTarget"window" | "parent""window"Which scroll position the pill follows: the page, or the nearest scrolling ancestor.
shrinkAtnumber24Pixels scrolled before the pill tightens.
hideOnScrollbooleanfalseSlides the pill out of view on scroll down and back on scroll up.
menuLabelstring"Open menu"Hidden label of the menu button while the menu is closed.
closeLabelstring"Close menu"Hidden label of the menu button while the menu is open.
classNamestringNone

More navigation blocks in Pro

View all

Related