Skip to content
PixiKit

Band Menu

A tall list of large links with one liquid band that glides to the row under the pointer, stretching as it moves, and scrolls a marquee of words and pictures inside it.

pixikit.com/docs/components/band-menu

Customize

Speed60px/s
Direction
Follow cursor0.40
Duration0.50s
Stretch0.60
Magnet0.25
Band inset0px
Carry content
Band radius0px
Text color
Bg color
Marquee bg color
Marquee text color
Dividers
Dim inactive
Align
Show index
Show arrow
Image shape
Intro

Props

27
NameTypeDefaultDescription
itemsBandMenuItem[]DEFAULT_ITEMSMenu rows: `{ text, link, image, marquee, meta }`.
speednumber60Marquee speed in px per second.
direction"left" | "right" | "alternate""left"Which way the marquee runs. Alternate flips every other row.
followCursornumber0.4How much moving the cursor sideways speeds up or reverses the marquee, from 0 to 1.
durationnumber0.5Time in seconds the band takes to glide to a row.
stretchnumber0.6How much the band stretches like liquid while it moves, from 0 for rigid to 1.
magnetnumber0.25How much the band leans toward the cursor inside a row, from 0 to 1.
bandInsetnumber0Gap in px between the band and the row edges.
carryContentbooleanfalseMoves the marquee with the band instead of keeping it fixed in each row.
bandRadiusnumber0Corner radius of the band in px. Use a large value for a pill.
textColorstring"#ffffff"Color of the menu text.
bgColorstring"#120F17"Background color of the menu.
marqueeBgColorstring"#ffffff"Background color of the band.
marqueeTextColorstring"#120F17"Text color inside the band.
borderColorstring"rgba(255, 255, 255, 0.14)"Color of the lines between rows.
dividersbooleantrueDraws lines between rows.
dimInactivebooleanfalseFades the other rows while the band is on one.
align"center" | "left""center"Alignment of the row labels.
showIndexbooleanfalseNumbers each row.
showArrowbooleanfalseAdds an arrow to the end of each row.
imageShape"pill" | "rounded" | "circle""pill"Shape of the images in the band.
introbooleantrueRows rise in, the lines draw and the band sweeps once down the menu on mount.
activeIndexnumberNoneMarks the current page row.
onItemClick(item: BandMenuItem, index: number, event: ReactMouseEvent<HTMLElement>) => voidNoneCalled when a row is clicked.
ariaLabelstring"Menu"Accessible name of the navigation.
classNamestring""
styleCSSPropertiesNone

More navigation components in Pro

View all

Related