Widget:Icon: Difference between revisions
Tag: Undo |
No edit summary |
||
Line 3: | Line 3: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
< | <button id="myButton">My button</button> | ||
</ | <script src="https://unpkg.com/@popperjs/core@2"></script> | ||
<script src="https://unpkg.com/tippy.js@6"></script> | |||
< | <script> | ||
// With the above scripts loaded, you can call `tippy()` with a CSS | |||
// selector and a `content` prop: | |||
tippy('#myButton', { | |||
content: 'My tooltip!', | |||
}); | |||
tippy('# | </script> | ||
}); | |||
</script> | |||
</includeonly> | </includeonly> |
Revision as of 05:58, 30 October 2024