mirror of https://github.com/Budibase/budibase.git
committed by
GitHub
12 changed files with 77 additions and 17 deletions
@ -0,0 +1,14 @@ |
|||||
|
<script> |
||||
|
import "@spectrum-css/tooltip/dist/index-vars.css" |
||||
|
|
||||
|
export let direction = "top" |
||||
|
export let text = "" |
||||
|
</script> |
||||
|
|
||||
|
<span class="u-tooltip-showOnHover tooltip"> |
||||
|
<slot /> |
||||
|
<div class={`spectrum-Tooltip spectrum-Tooltip--${direction}`}> |
||||
|
<span class="spectrum-Tooltip-label">{text}</span> |
||||
|
<span class="spectrum-Tooltip-tip" /> |
||||
|
</div> |
||||
|
</span> |
||||
Loading…
Reference in new issue