Skip to content
nexubDesign System
v2.4.0

Components · Feedback

Banner

DeprecatedSince v0.0.1

Deprecated — use Alert. Full-width announcement banner, typically used at the top of a page.

import { Banner } from '@nexub/react';

Examples

Default

With action

Props

Props
PropTypeDefaultDescription
tone'neutral' | 'info' | 'success' | 'warning' | 'danger'—Semantic colour tone of the banner.
actionReactNode—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.