Banner
Communicate updates, confirmations, and issues that need a merchant’s attention.
Official Shopify docsPolaris 2.0 web component
Remember a dismissed notice
Handle the dismiss event to update the surrounding UI when the merchant closes a banner.