Skip to content
Navigation

MegaCanvas

One big panel serves every menu. It resizes to fit each section and the content slides in from the side you moved toward.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
sections{ label, links: { label, href, note? }[], feature? }[]—Menus. feature = optional block on the right (e.g. a promo card).
onSelect(link, e) => void—Click handler. Call e.preventDefault() to stay on the page.
widthnumber560Panel width in pixels. Shrinks to fit narrow spaces.
closeDelaynumber160Milliseconds before closing after the pointer leaves.
accentstring"#a78bfa"Hover arrow colour.
labelstring"Main"Name read out by screen readers.
classNamestringglass pillBar look.
panelClassNamestringdark glass panelPanel look.