Sha256: 13aaa9ad0700584221d0f236d07ef5c3aeba0e06271635eea0bfb88f8b2cb53f
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
<%= render Primer::BaseComponent.new(**@kwargs) do %> <% if @icon.present? %> <%= render(Primer::OcticonComponent.new( icon: @icon, size: @icon_size, class: "blankslate-icon" )) %> <% end %> <% if @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
primer_view_components-0.0.8 | app/components/primer/blankslate_component.html.erb |