x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!-- Start --><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><!-- End --><div data-view-component="true" class="Layout Layout--flowRow-until-md Layout--sidebarPosition-start Layout--sidebarPosition-flowRow-end"> <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><!-- None --><div data-view-component="true" class="Layout Layout--flowRow-until-md Layout--sidebarPosition-start Layout--sidebarPosition-flowRow-none"> <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>
No notes provided.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Startrender(Primer::Alpha::Layout.new) do |component| component.with_main(bg: :attention, p: 6) { "Main content" } component.with_sidebar(row_placement: :start, bg: :accent, p: 6) { "Sidebar content" }end# Endrender(Primer::Alpha::Layout.new) do |component| component.with_main(bg: :attention, p: 6) { "Main content" } component.with_sidebar(row_placement: :end, bg: :accent, p: 6) { "Sidebar content" }end# Nonerender(Primer::Alpha::Layout.new) do |component| component.with_main(bg: :attention, p: 6) { "Main content" } component.with_sidebar(row_placement: :none, bg: :accent, p: 6) { "Sidebar content" }end
No params configured.