Skip to content
Navigation

MorphMenu

The round menu button itself stretches into the menu panel while its two lines turn into a cross. Esc, a click outside or a link closes it.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ label, href }[]—The links.
onSelect(item, e) => void—Click handler. Call e.preventDefault() to stay on the page.
widthnumber240Width of the open panel in pixels.
sizenumber48Size of the closed button in pixels.
align"left" | "right""right"Which side the panel grows from.
accentstring"#a78bfa"Hover dot colour.
labelstring"Menu"Panel heading and screen reader name.
classNamestringdark panelLook of the button / panel.