Hamburger Menu

An iconic three-line menu toggle that transforms smoothly into a symmetrical close symbol.

Click to morph (Closed (☰))

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/hamburger-menu

API Reference

PropTypeDefaultDescription
isOpenbooleanActive open/closed toggle state
onChange(isOpen: boolean) => voidCallback fired on user interaction
sizenumber24Width and height of the icon bounding box in pixels
colorstring'currentColor'Color of the SVG/CSS line strokes
labelstring'Menu'Accessible name announced to assistive tech
disabledbooleanfalseDisables button interactions