The filled banner inverts the page: a foreground surface with background-colored text, for announcements that should be seen first.
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.
messageBanner text. Defaults to "New blocks are landing in Nexvyn UI, ready to copy into your project."
linkLabelLink text after the message. Defaults to "Browse blocks". 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
<BannerFilled
message="New blocks are landing in Nexvyn UI."
linkLabel="Browse blocks"
href="/blocks"
/>Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.