Info banners come in various styles to indicate informations, success, warnings or errors
Expandable
They can be configured to display further information to the user in the form of an expandable panel.
Dismissible
Info banners can be configured to include a close icon so that the user can dismiss them.
Note that if info banners are being added or removed dynamically (like in the example below), you should render a BpkAriaLive container describing the updates taking place. By doing this, assistive technologies will know to inform the user when changes are made. By default, only additions to the container will be read out, so you don't need to worry about removing entries again.
With enter animation
Info banners can be configured to animate when first added to the DOM.
bpk-component-info-banner
Backpack info banner component.
Installation
Check the main Readme for a complete installation guide.
Usage
Default
Dismissable
withBannerAlertState(BpkInfoBanner)
Props
Check out the full list of props on Skyscanner's design system documentation website.