Sha256: 0e95d6980dbe408dde09156dc9bf10e99921a0180376b3152f0b48113991a908

Contents?: true

Size: 645 Bytes

Versions: 3

Compression:

Stored size: 645 Bytes

Contents

<% yield p = np %>

<% method ||= nil %>
<% active ||= request.path == url %>

<%= send (method ? :button_to : :link_to), url, class: "block group hover:no-underline hover-indent-child #{'border border-pink-400 dark:bg-black dark:bg-opacity-10' if active} px-2 py-2 dark:text-white", method: method do %>
  <div class="inline-block indent-child flex items-center text-primary-500">
    <!-- Heroicon name: home -->
    <% if p.content_for? :icon %>
      <span class="text-pink-500 mr-3 h-6 w-6 text-center text-xl leading-6 dark:text-gray-400">
        <%= p.content_for :icon %>
      </span>
    <% end %>
    <%= label %>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bullet_train-themes-hayabusa-1.3 app/views/themes/hayabusa/menu/_item.html.erb
bullet_train-themes-hayabusa-1.2 app/views/themes/hayabusa/menu/_item.html.erb
bullet_train-themes-hayabusa-1.1 app/views/themes/hayabusa/menu/_item.html.erb