Tippy.js for Svelte.
$ npm i sveltejs-tippy
or
$ yarn add sveltejs-tippy
<script>
import tippy from "sveltejs-tippy";
const props = {
content: "<span class='tooltip'>Styled tooltip text</span>",
placement: "bottom"
};
</script>
<style>
:global(.tooltip) {
font-size: 1.2rem;
text-transform: uppercase;
}
</style>
<button use:tippy={props}>
Hover me
</button>