Skip to content

BorderBox

BorderBox is a Box component with a border.

Examples

<%= render(Primer::BorderBoxComponent.new) do |component|
component.slot(:header) { "Header" }
component.slot(:body) { "Body" }
component.slot(:row) { "Row one" }
component.slot(:row) { "Row two" }
component.slot(:row) { "Row three" }
component.slot(:footer) { "Footer" }
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