Banner
This component is used to advertise offers, marketing campaigns and important messages
Basic Usage
import { Banner } from '@krakentech/coral';
<Banner>Banner content</Banner>;Banner content
Properties
textAlign
<Banner textAlign='center'>Banner content</Banner>
<Banner textAlign='left'>Banner content</Banner>
<Banner textAlign='right'>Banner content</Banner>Banner content
Banner content
Banner content
variant
<Banner variant='secondary'>Banner content</Banner>
<Banner variant='tertiary'>Banner content</Banner>Banner content
Banner content
Responsiveness
<Banner variant={{ base: 'secondary', md: 'tertiary' }}>Banner content</Banner>Banner content
Full API
Design
Good to know
Choose an banner to draw attention to a limited time offer or a marketing campaign, we only use these at the top of the homepage.
How does it work?
The banner is static and canโt be interacted with.
How much text can I used in a banner?
Avoid using more than 100 characters.
What is the difference between the alert and banner?
The main difference is the alert is something we donโt want the user to ignore and should prompt and action. However the banner is fine to ignore as it is only for promo and marketing purposes.
Last updated on