bestguy / sveltestrap

Bootstrap 4 & 5 components for Svelte
https://sveltestrap.js.org
MIT License
1.3k stars 183 forks source link

Tooltip with ref to DomElement instead of id #395

Closed kaipaysen closed 2 years ago

kaipaysen commented 2 years ago

I'm using the Tooltip within a svelte component which might be used multiple times. Providing ids for the "to be tooltiped" element does not work properly in this case.

I've provided an example here: https://svelte.dev/repl/36c3675121fa40c6a1407a50765b7b8d?version=3.42.6

Can we get a Tooltip target property which accepts a dom ref as an alternative to an id?

bestguy commented 2 years ago

Thanks @kaipaysen , this is released in v5.7.0