Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Default
render(Primer::Beta::BorderBox.new) do |component|
component.with_header { "Header" }
component.with_body { "Body" }
component.with_row { "Row one" }
component.with_row { "Row two" }
component.with_row { "Row three" }
component.with_footer { "Footer" }
end
# Condensed
render(Primer::Beta::BorderBox.new(padding: :condensed)) do |component|
component.with_header { "Header" }
component.with_body { "Body" }
component.with_row { "Row one" }
component.with_row { "Row two" }
component.with_row { "Row three" }
component.with_footer { "Footer" }
end
# Spacious
render(Primer::Beta::BorderBox.new(padding: :spacious)) do |component|
component.with_header { "Header" }
component.with_body { "Body" }
component.with_row { "Row one" }
component.with_row { "Row two" }
component.with_row { "Row three" }
component.with_footer { "Footer" }
end