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