Skip to main content

Additional Props

The adaptive prop

The adaptive prop is a boolean that decides how the position of the menu is related to the size of the page.

If the prop is true, as it is by default it will take into consideration page resizing and will change the position of the menu accordingly, so that it always points to the clicked point.

If the prop is false, the menu will always point to the clicked point, even if the page is resized. This is to be used when you have a document that scrolls, otherwise the menu will always appear as if the page was scrolled to the top.

It's planned to make this prop definition more complete so that it can be used in more scenarios, as, right now, setting adaptive to false will prevent correct repositioning on horizontal resizing.