Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Small
render(Primer::Alpha::Layout.new(stacking_breakpoint: :sm)) do |component|
component.with_main(bg: :attention, p: 6) { "Main content" }
component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }
end
# Medium
render(Primer::Alpha::Layout.new(stacking_breakpoint: :md)) do |component|
component.with_main(bg: :attention, p: 6) { "Main content" }
component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }
end
# Large
render(Primer::Alpha::Layout.new(stacking_breakpoint: :lg)) do |component|
component.with_main(bg: :attention, p: 6) { "Main content" }
component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }
end