x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!-- Default --><div data-view-component="true" class="Subhead"> <div data-view-component="true" class="Subhead-heading Subhead-heading--large">Default Spacing</div> <div data-view-component="true" class="Subhead-description">Default spacing above the component</div></div><!-- Spacious --><div data-view-component="true" class="Subhead Subhead--spacious"> <div data-view-component="true" class="Subhead-heading Subhead-heading--large">Spacious</div> <div data-view-component="true" class="Subhead-description">With extra space above the component</div></div><!-- Spacious w/ Danger Heading --><div data-view-component="true" class="Subhead Subhead--spacious"> <div data-view-component="true" class="Subhead-heading Subhead-heading--large Subhead-heading--danger">Danger Heading</div> <div data-view-component="true" class="Subhead-description">With extra space above the component, and a 'danger' heading</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
24
25
26
27
28
29
# Defaultrender(Primer::Beta::Subhead.new(spacious: false)) do |component| component.with_heading do "Default Spacing" end component.with_description do "Default spacing above the component" endend# Spaciousrender(Primer::Beta::Subhead.new(spacious: true)) do |component| component.with_heading do "Spacious" end component.with_description do "With extra space above the component" endend# Spacious w/ Danger Headingrender(Primer::Beta::Subhead.new(spacious: true)) do |component| component.with_heading(danger: true) do "Danger Heading" end component.with_description do "With extra space above the component, and a 'danger' heading" endend
No params configured.