Introduction of tooltips.

This commit is contained in:
2025-01-09 15:28:26 +01:00
parent 6235112f74
commit 82bacb7368
8 changed files with 121 additions and 36 deletions

View File

@@ -0,0 +1,11 @@
<div
x-data="{ tooltip: false }"
x-on:mouseover="tooltip = true"
x-on:mouseleave="tooltip = false"
{{ $attributes->merge(['class' => 'size-8 cursor-pointer']) }}>
<x-info-icon/>
<div x-show="tooltip"
class="text-sm text-white absolute bg-gray-900 rounded-lg p-2 transform -translate-y-8 translate-x-8">
{{$slot}}
</div>
</div>