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| Name | Type | Default | Description |
|---|---|---|---|
position | "left" | "right" | "right" | Anchor side of the menu panel. |
colors | string[] | ["#B497CF", "#5227FF"] | Colors of the layers that sweep in before the panel. |
items | CascadeMenuItem[] | DEFAULT_ITEMS | Menu items rendered inside the panel: `{ label, ariaLabel, link }`. |
socialItems | CascadeMenuSocialItem[] | DEFAULT_SOCIALS | Social links shown at the bottom of the panel: `{ label, link }`. |
displaySocials | boolean | true | Whether to display the social links section. |
displayItemNumbering | boolean | true | Whether to show numbering for menu items. |
className | string | "" | |
logoUrl | string | "" | Path to the logo image. Without it a built-in mark shows. |
menuButtonColor | string | "#fff" | Color of the menu toggle button when closed. |
openMenuButtonColor | string | "#fff" | Color of the menu toggle button when open. |
accentColor | string | "#5227FF" | Hover accent color for menu items, also used by the numbering and the socials heading. |
changeMenuColorOnOpen | boolean | true | Whether to animate the button color when opening and closing. |
onMenuOpen | () => void | None | Called when the menu opens. |
onMenuClose | () => void | None | Called when the menu closes. |
closeOnClickAway | boolean | true | Whether to close the menu when clicking outside. |
useFixedPosition | boolean | false | Pins the menu to the viewport; off, it fills its nearest positioned parent. |
style | CSSProperties | None |