You can modify offset from the side and along the alignment.

With Dialog #

This example shows how to use useMenuRef to close the Menu manually when necessary.