Toggle Sidebar B
AppearanceLight & dark mode D

Staggered Menu

Menu with staggered item animations and smooth transitions on open/close.

Default

Open the menu from the toggle. By default the menu fills its parent, so give the parent a position and a height, or set isFixed to cover the viewport.

Light previewReplay previewOpen in new tab

Customize

Position
Accent Color
Menu Button Color

API Reference

StaggeredMenu

PropTypeDefaultDescription
position'left' | 'right''right'Anchor position for the menu panel (left or right side).
colorsstring[]['#B497CF', '#5227FF']Colors used for staggered underlay layers.
items{ label: string; ariaLabel?: string; link: string }[][]Menu items rendered inside the panel.
socialItems{ label: string; link: string }[][]Social links displayed in the menu panel.
displaySocialsbooleantrueWhether to display the social links section.
displayItemNumberingbooleantrueWhether to show numbering for menu items.
logoUrlstring''Path to the logo image. Nothing is rendered when empty.
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.
changeMenuColorOnOpenbooleantrueWhether to animate the button color when opening/closing.
isFixedbooleanfalseCover the whole viewport with position: fixed instead of filling the parent.
closeOnClickAwaybooleantrueWhether to close the menu when clicking outside.

Events

PropTypeDefaultDescription
menu-open() => void-Emitted when the menu opens.
menu-close() => void-Emitted when the menu closes.

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
TabMoves focus to the toggle, then through the menu links.
Enter + SpaceOpens or closes the menu from the toggle.
  • The toggle exposes aria-expanded and the panel is aria-hidden while closed.