<AlertBanner>
ComponentAlertBanner
is a component used widely across HashiCorp websites to draw attention to an important release, event, etc. It appears in bold colors at the top of the website, and can be dismissed.
Name | Description |
---|---|
tag* string | The text contained inside the tag to the left |
text* string | The text in the main area |
url* string | where to link to when clicked |
product string | A lower-case product identifier to pull in respective theme colors. The default is hashicorp blue. |
linkText string | Secondary text styled as a link |
name string | string used for cookie name (defaults to slugified text property) |
expirationDate string | A datetime string that, when set, controls if the alert banner should appear |
hideOnMobile boolean | If true, the alert banner will be forcefully hidden on mobile. |