Banner

Page-level message strip — incident notices, plan limits, deprecation warnings. Five tones (info / success / warning / danger / neutral), optional icon + title + action + dismiss button. Can pin to the top of its scroll container.

Usage

import { Banner, Button } from '@bwo-ui/react';

<Banner tone="warning" title="Plan limit" icon={<WarnIcon />}>
  You've used 92% of this month's API quota.
</Banner>

<Banner tone="info" sticky onDismiss={() => mark('seen')}>
  Maintenance window starts 23:00 UTC.
</Banner>

Props

PropTypeDefaultDescription
tone'info' | 'success' | 'warning' | 'danger' | 'neutral''info'Visual + accessibility tone.
iconReactNodeLeading icon.
titleReactNodeBold title before the body.
actionReactNodeTrailing action — usually a Button or link.
onDismiss() => voidWhen provided, renders a close (×) button on the right.
stickybooleanfalsePin to the top of the scroll container.