Template:Tooltip: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
==example ==
==example ==
<span data-tooltip-target="tooltip-top" data-tooltip-placement="top">tooltip on top</span>
<span data-tooltip-target="tooltip-top" data-tooltip-placement="top">tooltip on top</span>
{{tooltip|I'm a tooltip!}}
{{tooltip|I'm a tooltip!|id=tooltip-top}}
</noinclude><onlyinclude><div id="{{{id|tooltip-default}}}" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-xs opacity-0 tooltip dark:bg-gray-700">{{{1|}}}<div class="tooltip-arrow" data-popper-arrow></div>
</noinclude><onlyinclude><div id="{{{id|tooltip-default}}}" role="tooltip" class="opacity-0 absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white duration-300 bg-gray-900 rounded-lg shadow-xs tooltip dark:bg-gray-700">{{{1|}}}<div class="tooltip-arrow" data-popper-arrow></div>
</div></onlyinclude>
</div></onlyinclude>

Latest revision as of 03:13, 9 May 2025

example

tooltip on top