<% if style == :tabs %>
<% visible_items.each do |tab| %> <%= a_link tab_path(tab), color: selected?(tab) ? :primary : :gray , rounded: false, size: :sm, class: "active:outline-0 #{selected?(tab) ? "z-20" : "bg-gray-100 border-gray-300"}", title: tab.description, data: { tippy: tab.description.present? ? 'tooltip' : '', selected: selected?(tab), action: 'click->tabs#changeTab', tabs_id_param: tab.name } do %> <%= tab.name %> <% end %> <% end %>
<% else %>
<% visible_items.each do |tab| %> <%= a_link tab_path(tab), color: selected?(tab) ? :primary : :gray, style: selected?(tab) ? :outline : :text, size: :sm, class: selected?(tab) ? "z-20 bg-primary-100" : "", title: tab.description, data: { tippy: tab.description.present? ? 'tooltip' : '', selected: selected?(tab), action: 'click->tabs#changeTab', tabs_id_param: tab.name } do %> <%= tab.name %> <% end %> <% end %>
<% end %>