Spaces:
Paused
Paused
Download src/lib/components/HoverTooltip.svelte from vollsteksolutions/test: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/spaces/vollsteksolutions/test/resolve/main/src/lib/components/HoverTooltip.svelte
- Command line
-
hf download hf://spaces/vollsteksolutions/test/src/lib/components/HoverTooltip.svelte
-
curl -L -o HoverTooltip.svelte https://huggingface.co/spaces/vollsteksolutions/test/resolve/main/src/lib/components/HoverTooltip.svelte
339 Bytes
| <script lang="ts"> | |
| export let label = ""; | |
| </script> | |
| <div class="group/tooltip md:relative"> | |
| <slot /> | |
| <div | |
| class="invisible absolute z-10 w-64 whitespace-normal rounded-md bg-black p-2 text-center text-white group-hover/tooltip:visible group-active/tooltip:visible max-sm:left-1/2 max-sm:-translate-x-1/2" | |
| > | |
| {label} | |
| </div> | |
| </div> | |