An outline banner led by a small tag, for launches and changelog news that deserve a label.
Dependencies
Interaction Type
Press the close button to dismiss the banner. The close button is reachable by keyboard and shows the accent focus ring.
Props
Options you can pass to customize this component.
tagTag text before the message. Defaults to "New".
messageBanner text. Defaults to "Banner blocks are here, six layouts for every kind of notice."
linkLabelLink text after the message. Defaults to "Read more". Pass an empty string to hide it.
hrefWhere the link points.
openControlled open state.
defaultOpenInitial open state. Defaults to true.
onOpenChangeCalled when the banner is dismissed.
dismissibleShows the dismiss button. Defaults to true.
dismissLabelAccessible label of the dismiss button. Defaults to "Dismiss banner".
Installation
How to use
<BannerTagged
tag="New"
message="Banner blocks are here."
linkLabel="Read more"
href="/changelog"
/>Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.