Toggle contextual overlays for displaying lists of links and more with the Bootstrap dropdown plugin.
bootstrap.bundle.js which contains Popper.js. Popper.js isn???t used to position dropdowns in navbars though as dynamic positioning isn???t required.
Put a form within a dropdown menu, or make it into a dropdown menu, and use margin or padding utilities to give it the negative space you require.