Introduction of tooltips.
This commit is contained in:
11
resources/views/components/tooltip.blade.php
Normal file
11
resources/views/components/tooltip.blade.php
Normal 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>
|
||||
Reference in New Issue
Block a user