styleKeyspromoBar
Promo Bar
A promo bar contains a promotional message, typically a Promo Code plus other promotional information.
It is used directly above a hero.
Playground
Segmented
Each direct child of the Promo Bar will be treated as its own "segment". The Promo Bar will automatically put a small amount of spacing between each segment. It will try not to put a line break in the middle of a segment, and will instead try to put breaks between segments. If you want the promo bar's copy to line-break normally, place all the content inside a single segment.
<PromoBar><p>Up to <strong>50% off</strong> business cards</p><p>Code: <PromoCode>BIZSAVE</PromoCode></p><p><Link href="#">View Details</Link></p></PromoBar>
<div class="promo-bar"><p>Up to <strong>50% off</strong> business cards</p><p>Code: <span class="promo-code">BIZSAVE</span></p><p><a class="link" href="#">View Details</a></p></div>
Skins
"discount" skin
The "discount" skin is for when the promotional message represents a discount or savings.
Up to 50% off business cards with code:
BIZSAVE
"holiday" skin
Up to 50% off business cards with code:
BIZSAVE
"inverse" skin
Up to 50% off business cards with code:
BIZSAVE
Components
PromoBar
Prop | Type | Default | Description |
---|---|---|---|
skin | "discount" | "holiday" | "standard" | "inverse" | standard | The visual style of the PromoBar |
All other props are forwarded to the element specified in thecomponent
prop(default: <div/>
)