Full-width banner that displays a heading, subtitle, and call to action. The call to action can be a button, zip code form, or something custom. Subtitle is optional and can be omitted.
Intended for use either within a full-width page layout or one slightly constrained to 10 columns on large desktop breakpoints (shown in the examples below).
This is the default layout, designed to show a zip code form and display nicely within a limited-width container. The second example has background
set to dark-blue
.
By default, the cta
section will display at a larger width to accommodate a zip code form. When using a button, set the hasButton
prop to true
, and the CTA section will reduce in width.
Our installer network is growing every day. Explore options in your state.
The stacked variant
will always keep the heading and subtitle above the CTA section on all breakpoints. This is useful when the form's text input needs to be wider, as in the case of an email signup form (a nonfunctional form is shown below just for illustrative layout purposes). The example below also demonstrates using the sideImage
slot and the alignMobile
, background
, and sideImageContainerClass
props.
Plug in for monthly energy-saving tips, climate news, sustainability trends and more.
The semi-wide variant
gives more width to the heading and subtitle than the default variant
at the lg
breakpoint and up, and more width to the cta slot than the wide variant
. It's recommended for email form CTAs that will go full width like the one below.
Plug in for monthly energy-saving tips, climate news, sustainability trends and more.
Set the variant
prop to 'wide'
when the banner will display full width on a page. The heading
text will appear larger on desktop, and the side padding will increase.
By default, the cta
section will display at a larger width to accommodate a zip code form. When using a button, set the hasButton
prop to true
, and the CTA section will reduce in width.
Our installer network is growing every day. Explore options in your state.
This example has the deprecated prop dark
set to true
, just to illustrate that it still works as the equivalent to setting background
to dark-blue
. This functionality will be removed in a future release, so we recommend refactoring away from dark
in favor of background
.
cta
heading
'Easily find what solar costs in your area'
sideImage
subtitle
alignMobile
String
'center'
background
String
'none'
dark
Boolean
false
hasButton
Boolean
false
sideImageContainerClass
String
''
variant
String
'default'