chat-ui / src /lib /components /HoverTooltip.svelte
nsarrazin's picture
nsarrazin HF staff
Expose sampling controls in assistants (#955) (#959)
d4016bc unverified
raw
history blame
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>