Sha256: b8e8632d3c2b4646137a78b56d05512ddd82c51e1cd8dc20e2d0d5c52d11b208

Contents?: true

Size: 805 Bytes

Versions: 3

Compression:

Stored size: 805 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? %>
    <a class="btn <%= @button_classes %>" href="<%= @button_url %>"><%= @button_text %></a>
  <% end %>

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
primer_view_components-0.0.7 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.6 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.5 app/components/primer/blankslate_component.html.erb