You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
637 B

<div>
<%= link_to path,
data: local_assigns.fetch(:data, nil) do %>
<div class="group relative inline-block">
<div class='bg-blue-600 text-white mr-1 py-2 px-3 border rounded-lg'>
<%=fa_icon icon %>
</div>
<div class="bg-purple-800 text-white absolute top-full left-1/2 z-20 mt-2 -translate-x-1/2 whitespace-nowrap rounded-[5px] py-1.5 px-3.5 text-sm opacity-0 group-hover:opacity-100 pointer-events-none">
<span class="bg-purple-800 absolute top-[-3px] left-1/2 -z-10 h-2 w-2 -translate-x-1/2 rotate-45">
</span>
<%= tooltip %>
</div>
</div>
<% end %>
</div>