Skip to content
PixiKit

Cascade Menu

A side panel menu: colored layers sweep in one after another, then large numbered links rise in a stagger above a row of social links.

pixikit.com/docs/components/cascade-menu

Customize

Position
Colors2 of 10
Display socials
Display item numbering
Menu button color
Open menu button color
Accent color
Change menu color on open
Close on click away
Use fixed position

Props

17
NameTypeDefaultDescription
position"left" | "right""right"Anchor side of the menu panel.
colorsstring[]["#B497CF", "#5227FF"]Colors of the layers that sweep in before the panel.
itemsCascadeMenuItem[]DEFAULT_ITEMSMenu items rendered inside the panel: `{ label, ariaLabel, link }`.
socialItemsCascadeMenuSocialItem[]DEFAULT_SOCIALSSocial links shown at the bottom of the panel: `{ label, link }`.
displaySocialsbooleantrueWhether to display the social links section.
displayItemNumberingbooleantrueWhether to show numbering for menu items.
classNamestring""
logoUrlstring""Path to the logo image. Without it a built-in mark shows.
menuButtonColorstring"#fff"Color of the menu toggle button when closed.
openMenuButtonColorstring"#fff"Color of the menu toggle button when open.
accentColorstring"#5227FF"Hover accent color for menu items, also used by the numbering and the socials heading.
changeMenuColorOnOpenbooleantrueWhether to animate the button color when opening and closing.
onMenuOpen() => voidNoneCalled when the menu opens.
onMenuClose() => voidNoneCalled when the menu closes.
closeOnClickAwaybooleantrueWhether to close the menu when clicking outside.
useFixedPositionbooleanfalsePins the menu to the viewport; off, it fills its nearest positioned parent.
styleCSSPropertiesNone

Related