Skip to content

Banner

Last updated 27 Oct 2026

NbBanner is a page-level message: a filled block that states something about the page or the task, sitting above or at the top of the content it concerns.

It is the third of three things that look superficially alike, and picking the wrong one is the usual mistake:

UseWhen
NbBannerSomething is true about this page or task, and it stays on screen.
NbMessageA single form field has something to say about its own value.
NbToastSomething just happened, and the news expires by itself.
vue
<template>
  <NbBanner status="warning" title="Rebuild queued but NOT confirmed">
    A hook accepted is the start of a build, not the end of one.
  </NbBanner>
</template>

Writing the message ​

Follow the same discipline the status colours imply. Say what happened in the title, without a full stop, and what to do about it in the body.

  • Do: title="Rebuild not confirmed", body The content is live in the API; the site may still serve old HTML.
  • Don't: title="Warning!", body Something went wrong. Please try again.

Never use colour as the only signal. Every status ships an icon for exactly this reason, and hideIcon should be reserved for banners whose meaning is already unambiguous from the text.