Banner
An announcement bar for the top of a site, above the Navbar: an icon, a message and a link, with a button that closes it.
Your announcement goes here.Link
Usage
Examples
Appearances
appearance paints the bar: solid for the announcement that matters most, soft, or outline, the page with a line under it.
Action
action sets a small Button after the message, turned over on the solid appearance so it stands out from the bar.
Dismissible
dismissible adds the close button. Left alone the bar hides itself; with open and onDismiss the page keeps the state, to remember the choice or bring the bar back.
Your announcement goes here.Link
Sticky
sticky keeps the bar at the top of the page while it scrolls under it. Scroll the frame to see it hold.
Moving line
marquee repeats the message across the bar on the kit's Marquee, slowly, pausing under the pointer and standing still for anyone who asks for less motion, while its link stays at the end.
API Reference
Banner
BannerProps · blocks/Banner/Banner.types.tsBlockLink
used by linkBlockAction
used by actionIt also takes the props of <div>.