Sha256: de28f8cf9f1c04261700dcdff4d94032f853496134ed404cc67b6d1c00114893

Contents?: true

Size: 653 Bytes

Versions: 2

Compression:

Stored size: 653 Bytes

Contents

<%
  tab.configure do |config|
    config.defaults text: "Tab",
                    active?: false,
                    id: "tab",
                    panel_id: "tab_panel",
                    icon: nil

    config.classes(base: "tablist__tab")
    config.conditional_classes(if: :active?, base: "tablist__tab--is-active")
  end
%>

<a class="<%= tab.classes_for(:base) %>" role="tab" tabindex="<%= tab.active? ? 0 : -1 %>" aria-controls="<%= tab.panel_id %>" href="#<%= tab.panel_id %>" id="<%= tab.id %>">
  <% if tab.icon %>
    <%= docks_icon(tab.icon, style: :stroke) %>
  <% end %>

  <span class="tablist__tab__text"><%= tab.text %></span>
</a>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
docks_theme_api-1.0.3 source/components/tablist/tablist_tab.erb
docks_theme_api-1.0.2 source/components/tablist/tablist_tab.erb