Sha256: 24d5afef60af0141b8713f23c6e9cde539c9e1c038d05db1531eb53a98167e2f

Contents?: true

Size: 794 Bytes

Versions: 3

Compression:

Stored size: 794 Bytes

Contents

div data-controller="satis-menu" data-action="#{menu.event}->satis-menu#show mouseleave->satis-menu#hide"
  - if content
    = content
  - else
    button.inline-flex.items-center.justify-center.h-8.w-8.rounded-full.focus:outline-none.focus:ring-2.focus:ring-offset-2.focus:ring-primary-500.dark:text-gray-500 aria-expanded="false" aria-haspopup="true" type="button"
      span.font-semibold.flex-1 id="#{icon_id}" class="#{menu.items.present? ? '' : 'text-gray-200'}"
        i class=icon

  - if menu.items.present?
    ul.hidden.z-10.bg-white.dark:bg-gray-400.border.dark:border-gray-800.rounded-md.shadow-lg.min-w-max data-satis-menu-target="submenu" data-satis-menu-submenu-placement="bottom"
      - menu.items.each do |item|
        = render(Satis::MenuItem::Component.new(item: item))

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
satis-1.0.70 app/components/satis/menu/component.html.slim
satis-1.0.69 app/components/satis/menu/component.html.slim
satis-1.0.68 app/components/satis/menu/component.html.slim