Sha256: 2a0fd958f15b2b44ac9ebe63fe3808bc1cff455041e499108f1857bd6518e5af

Contents?: true

Size: 1010 Bytes

Versions: 3

Compression:

Stored size: 1010 Bytes

Contents

li.rounded-sm.px-3.py-1.hover:bg-gray-100.dark:hover:bg-gray-200.flex.items-center data-controller="satis-menu" data-action="mouseover->satis-menu#show mouseleave->satis-menu#hide"
  a.cursor-pointer.py-1.w-full.text-left.flex.items-center.outline-none.focus:outline-none href=item.link *item.link_attributes
    - if item.type == :custom
      = render(partial: item.link_attributes[:data][:path], locals: item.link_attributes[:data][:parameters])
    span.pr-1.flex-shrink-0.w-6
      - if item.icon.present?
        i class=item.icon
    span.pr-1.flex-1
      - unless item.type == :custom
        = item.label
    span.pr-1.flex-shrink-0.w-6
      - if item.type == :toggle
        i.fal.fa-check.hidden data-satis-menu-target="toggle" id="#{item.id}"

  - if item.menu
    ul.hidden.bg-white.border.rounded-md.shadow-lg data-satis-menu-target="submenu" data-satis-menu-submenu-placement="left"
      - item.menu.items.each do |sub_item|
        = render(Satis::MenuItem::Component.new(item: sub_item))


Version data entries

3 entries across 3 versions & 1 rubygems

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