Sha256: 5fe5a9348c224b731b5442eb74bd9fde45d5d929986eb1c1cb5cb62da64c6d1a

Contents?: true

Size: 981 Bytes

Versions: 38

Compression:

Stored size: 981 Bytes

Contents

<%# erblint:counter ButtonComponentMigrationCounter 1 %>
<%= render Primer::BaseComponent.new(**@system_arguments) do %>
  <% if spinner.present? %>
    <%= spinner %>
  <% elsif @icon.present? %>
    <%= primer_octicon @icon, size: @icon_size, classes: "blankslate-icon" %>
  <% elsif @image_src.present? && @image_alt.present? %>
    <%= image_tag "#{@image_src}", class: "mb-3", size: "56x56", alt: "#{@image_alt}" %>
  <% end %>

  <% if @title.present? %>
    <%= render Primer::BaseComponent.new(tag: @title_tag, mb: 1) do %><%= @title %><% end %>
  <% end %>

  <% 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

38 entries across 38 versions & 1 rubygems

Version Path
primer_view_components-0.0.80 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.79 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.78 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.77 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.76 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.75 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.74 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.73 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.72 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.71 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.70 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.69 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.68 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.67 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.66 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.65 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.64 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.63 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.62 app/components/primer/blankslate_component.html.erb
primer_view_components-0.0.61 app/components/primer/blankslate_component.html.erb