Sha256: 5e0d1dae942ec0c254ddab504d49a0b0a15242ab10b968ff5452831489e93e9f

Contents?: true

Size: 880 Bytes

Versions: 41

Compression:

Stored size: 880 Bytes

Contents

<%= content_tag(:li,
  aria: object.aria,
  class: object.classname,
  data: object.data,
  id: object.id) do %>
  <%= content_tag(object.tag,
    object.link ? object.link_options : object.options) do %>
    <% if object.image_url %>
      <%= pb_rails("image", props: { url: object.image_url, classname: "pb_nav_img_wrapper" }) %>
    <% end %>
    <% if object.icon_left %>
      <%= pb_rails("icon", props: { aria: { label: object.icon_left }, icon: object.icon_left, classname: "pb_nav_list_item_icon_left", fixed_width: true}) %>
    <% end %>
    <span class="pb_nav_list_item_text">
      <%= object.text %><%= content.presence %>
    </span>
    <% if object.icon_right %>
      <%= pb_rails("icon", props: { aria: { label: object.icon_right }, icon: object.icon_right, classname: "pb_nav_list_item_icon_right", fixed_width: true}) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
playbook_ui-8.1.0 app/pb_kits/playbook/pb_nav/item.html.erb