Skip to content
Gelatin UIAlpha

Burger Menu Icon

Free

The menu button of a phone layout. Its three bars turn into a cross or a back arrow while the menu is open.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Use it alone, or as the trigger of a Drawer.

menu-button.tsx

BurgerMenuIcon

<button>
PropTypeDefaultDescription
aria-labelstring—Defines a string value that labels the current element. The accessible name, the same in both states. Default "Menu". Translate it with the page.
classNamestring—
busyboolean—The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading.
glass"clear""dark""light"—
rounded"default""full"—
variant"dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary""ghost"
size"icon""icon-lg""icon-sm""icon-xs""icon-sm"The Button icon sizes: 24, 28 (default), 32, or 36px. The bars are 16px (12px on icon-xs).
morph"arrow""x""x"x (default): the bars turn into an X. arrow: an arrow to the inline start. Both close.
openboolean—Open (controlled). With onOpenChange.
defaultOpenbooleanfalseOpen on the first render (uncontrolled). Default false.
onOpenChange—Runs on each press with the next state. Not called when a Base UI trigger owns the state.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.