Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!-- Small -->
<div data-view-component="true" class="Layout Layout--sidebarPosition-start Layout--sidebarPosition-flowRow-start">
<div data-view-component="true" class="Layout-sidebar color-bg-accent p-6">Sidebar content</div>
<div data-view-component="true" class="Layout-main color-bg-attention p-6">Main content</div>
</div>
<!-- Medium -->
<div data-view-component="true" class="Layout Layout--flowRow-until-md Layout--sidebarPosition-start Layout--sidebarPosition-flowRow-start">
<div data-view-component="true" class="Layout-sidebar color-bg-accent p-6">Sidebar content</div>
<div data-view-component="true" class="Layout-main color-bg-attention p-6">Main content</div>
</div>
<!-- Large -->
<div data-view-component="true" class="Layout Layout--flowRow-until-lg Layout--sidebarPosition-start Layout--sidebarPosition-flowRow-start">
<div data-view-component="true" class="Layout-sidebar color-bg-accent p-6">Sidebar content</div>
<div data-view-component="true" class="Layout-main color-bg-attention p-6">Main content</div>
</div>
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