It is the third of three things that look superficially alike, and picking the wrong one is the usual mistake:
| Use | When |
|---|---|
NbBanner | Something is true about this page or task, and it stays on screen. |
NbMessage | A single form field has something to say about its own value. |
NbToast | Something 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", bodyThe content is live in the API; the site may still serve old HTML. - Don't:
title="Warning!", bodySomething 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.