Sha256: 49a4fead5ff09794412d2c9723661d9fdb9ca3feb61c810017b28ffa0d8d03a2

Contents?: true

Size: 600 Bytes

Versions: 17

Compression:

Stored size: 600 Bytes

Contents

<% if @path.present? %>
  <%= send link_method, @path, class: classes, active: @active, target: @target, data: @data, **@args do %>
    <%= helpers.svg @icon, class: "h-4 text-gray-700" if @icon.present? %>
    <%= @label %>
    <% if @target == :_blank %>
      <%= helpers.svg('heroicons/outline/external-link', class: 'self-center ml-auto h-3 mr-2') %>
    <% end %>
  <% end %>
<% else %>
  <%= content_tag :div, class: classes, active: @active, target: @target, data: @data do %>
    <%= helpers.svg @icon, class: "h-4 text-gray-700" if @icon.present? %>
    <%= @label %>
  <% end %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
avo-3.15.1 app/components/avo/sidebar/link_component.html.erb
avo-3.15.0 app/components/avo/sidebar/link_component.html.erb
avo-3.14.5 app/components/avo/sidebar/link_component.html.erb
avo-3.14.4 app/components/avo/sidebar/link_component.html.erb
avo-3.14.3 app/components/avo/sidebar/link_component.html.erb
avo-3.14.2 app/components/avo/sidebar/link_component.html.erb
avo-3.14.1 app/components/avo/sidebar/link_component.html.erb
avo-3.14.0 app/components/avo/sidebar/link_component.html.erb
avo-3.13.7 app/components/avo/sidebar/link_component.html.erb
avo-3.13.6 app/components/avo/sidebar/link_component.html.erb
avo-3.13.5 app/components/avo/sidebar/link_component.html.erb
avo-3.13.4 app/components/avo/sidebar/link_component.html.erb
avo-3.13.3 app/components/avo/sidebar/link_component.html.erb
avo-3.13.2 app/components/avo/sidebar/link_component.html.erb
avo-3.13.1 app/components/avo/sidebar/link_component.html.erb
avo-3.13.0 app/components/avo/sidebar/link_component.html.erb
avo-3.12.0 app/components/avo/sidebar/link_component.html.erb