Relative Content

Tag Archive for htmlcssvue.js

Slot as a parent of another slot in Vue

Essentially I am trying to write a tooltip component, and I would like for the tooltip dialogue to be absolutely positioned relative to the source of the tooltip. To accomplish this, I would need to wrap the dialog with the source and set the source to position:relative. The problem is that I would like for both the source and tooltip text to be slots/some form of HTML, so that I can pass arbitrary icons/formatted text.