I use lightning-button-menu component and would like to align the menu top. I found that it can be aligned left or right, but it there a possibility to align top?

<lightning-button-menu alternative-text="Export options"
     <lightning-menu-item value="pfd" 
                          label="Export to PDF">
     <lightning-menu-item value="xls" 
                          label="Export to Excel">

1 Answer 1


Sure you can do it. The Lightning Design System specified this functionality: https://www.lightningdesignsystem.com/components/menus/#Positioned-Bottom

and also the mentioned LWC component implemented it too: https://developer.salesforce.com/docs/component-library/bundle/lightning:buttonMenu/specification

You need to use either bottom-left, bottom-center or bottom-right values in the menu-alignment argument.

  • ohh thanks. I did not read the docs properly.
    – m_konyk
    Mar 29, 2019 at 8:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.