const popperInstance = Popper.createPopper(button, tooltip, { modifiers: [ { name: 'offset', options: { offset: [0, 8], }, }, ], });
Output :