Sha256: 3df539ed0ab3996e7a7211bfb9fbc81d9a888e5f93b78685ccb7b08596e3a55b

Contents?: true

Size: 825 Bytes

Versions: 2

Compression:

Stored size: 825 Bytes

Contents

<%= render Primer::BaseComponent.new(**@kwargs) do %>
  <% if @icon.present? %>
    <%= octicon @icon, height: @icon_height, class: "blankslate-icon" %>
  <% end %>

  <% if @image_src.present? && @image_alt.present? %>
    <%= image_tag "#{@image_src}", class: "mb-3", size: "56x56", alt: "#{@image_alt}" %>
  <% end %>

  <<%= @title_tag %> class="mb-1"><%= @title %></<%= @title_tag %>>

  <% if @description.present? %>
    <p><%= @description %></p>
  <% end %>

  <%= content %>

  <% if @button_text.present? && @button_url.present? %>
    <p><a class="btn <%= @button_classes %>" href="<%= @button_url %>"><%= @button_text %></a></p>
  <% end %>

  <% if @link_text.present? && @link_url.present? %>
    <p class="mt-3">
      <%= link_to "#{@link_url}" do %><%= @link_text %><% end %>
    </p>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
primer_view_components-0.0.4 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.3 app/components/primer/blankslate_component.html.erb