API Reference

PropTypeDefaultDescription
Labelstring""Trigger button text (also the aria-label for icon-only triggers).
TriggerModeTriggerModeTriggerClickOpen on: "click", "hover", or "context" (right-click).
Sections[]SectionnilGroups of Items; each section is divider-separated. Item: Label, Href/OnClick, Icon, Shortcut, Disabled, Danger, Tooltip, ID.
TriggerIcontempl.ComponentnilCustom trigger icon.
TriggerIconOnlyboolfalseRender only the icon as the trigger (uses Label for aria-label).
MenuAlignMenuAlignleftHorizontal alignment of the menu relative to the trigger.
IDstring""Container id (scopes the menu and Alpine state).