Components · Feedback
Full-width announcement banner, typically used at the top of a page.
import { Banner } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | — | — | Semantic colour tone of the banner. |
| action | ReactNode | — | — | Action element (e.g. a button or link) rendered to the right of the content. |
| onClose | () => void | — | — | When provided, renders a close button that dismisses the banner. |