Skip to content

BorderBox

BorderBox is a Box component with a border.

Examples

<%= render(Primer::BorderBoxComponent.new) do |component| %>
<% component.slot(:header) do %>
Header
<% end %>
<% component.slot(:body) do %>
Body
<% end %>
<% component.slot(:row) do %>
<% if true %>
Row one
<% end %>
<% end %>
<% component.slot(:row) do %>
Row two
<% end %>
<% component.slot(:footer) do %>
Footer
<% end %>
<% end %>

Arguments

NameTypeDefaultDescription
system_argumentsHashN/ASystem arguments

header slot

NameTypeDefaultDescription
system_argumentsHashN/ASystem arguments

body slot

NameTypeDefaultDescription
system_argumentsHashN/ASystem arguments
NameTypeDefaultDescription
system_argumentsHashN/ASystem arguments

row slot

NameTypeDefaultDescription
system_argumentsHashN/ASystem arguments