Skip to main content

Menu

Display a list of actions or options, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
triggerReactNode-
renderReactElement-
itemsMenuItem[]-
iconbooleantrue
iconPositionleading | trailingleading
openboolean-
onOpenChange(open: boolean) => void-
sizesm | md | lgmdTrigger padding, popup width, item padding and item text size together.
Trigger padding, popup width, item padding and item text size together.
shapenone | rounded | pillrounded
disabledbooleanfalseBlocks the menu from opening at all & dims the trigger.
Blocks the menu from opening at all & dims the trigger.
animatedbooleantrue
classNamestring-
focusboolean | stringtrue
containerHTMLElement | null-