Sha256: 7555ff701917a9561396cf4586741b589fca3f31ee769682aa431cd26bf57c1c

Contents?: true

Size: 884 Bytes

Versions: 1

Compression:

Stored size: 884 Bytes

Contents

<%= pb_content_tag(:div, **combined_html_options) do %>
    <% if object.tooltip_text.present? %>
        <%= pb_rails("tooltip", props: {
          trigger_element_id: object.tooltip_id,
          tooltip_id: "tooltip-2",
          position: 'top'
        }) do %>
          <%= object.tooltip_text %>
        <% end %>
    <% end %>

    <%= link_to object.link_url, id: object.tooltip_id, 'aria-label': object.link_aria_label do %>
      <%= pb_rails("avatar", props: {
        dark: object.dark,
        name: object.name,
        size: object.size,
        image_alt: object.image_alt,
        image_url: object.image_url,
        class: "avatar_action"
      }) %>
      <div class="icon <%= object.dark ? 'dark' : '' %> ">
        <%= pb_rails("icon", props: {
          dark: object.dark,
          icon: object.action_icons
        }) %>
      </div>
    <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
playbook_ui-13.24.0.pre.alpha.play1305drycontenttag2689 app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb