Function
The element that opens the menu. Pass asChild to project the trigger behaviour onto your own button instead of rendering a nested one.
asChild
Radix wires aria-haspopup and aria-expanded here. When the trigger's visible text is an abbreviation, give it an explicit aria-label naming the full concept — otherwise a screen reader announces the abbreviation.
aria-haspopup
aria-expanded
aria-label
The element that opens the menu. Pass
asChildto project the trigger behaviour onto your own button instead of rendering a nested one.