x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- None --><div data-view-component="true" class="Layout Layout--flowRow-until-md Layout--gutter-none 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><!-- Condensed --><div data-view-component="true" class="Layout Layout--flowRow-until-md Layout--gutter-condensed 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><!-- Default --><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><!-- Spacious --><div data-view-component="true" class="Layout Layout--flowRow-until-md Layout--gutter-spacious 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>
No notes provided.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Nonerender(Primer::Alpha::Layout.new(gutter: :none)) do |component| component.with_main(bg: :attention, p: 6) { "Main content" } component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }end# Condensedrender(Primer::Alpha::Layout.new(gutter: :condensed)) do |component| component.with_main(bg: :attention, p: 6) { "Main content" } component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }end# Defaultrender(Primer::Alpha::Layout.new(gutter: :default)) do |component| component.with_main(bg: :attention, p: 6) { "Main content" } component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }end# Spaciousrender(Primer::Alpha::Layout.new(gutter: :spacious)) do |component| component.with_main(bg: :attention, p: 6) { "Main content" } component.with_sidebar(bg: :accent, p: 6) { "Sidebar content" }end
No params configured.