Brik Design System
Components

Alert banner

DEPRECATED — use Banner with tone instead.

AlertBanner is deprecated. Migrate to Banner with the appropriate tone prop. This component is slated for deletion in a future major version per ADR-004.

Migration

Same shape, same Badge, same surface — just renamed under Banner.

// Before
<AlertBanner variant="warning" title="Trial ends in 7 days" />

// After
<Banner tone="warning" title="Trial ends in 7 days" />
AlertBanner variantBanner tone
informationinformation
warningwarning
errorerror

The title, description, and action props are unchanged. Banner additionally supports onDismiss (close button) and tone="announcement" (brand-primary surface, the default — for marketing notices distinct from status alerts).

Why the consolidation

AlertBanner and the legacy "marketing announcement banner" pattern were two visually similar components doing the same job at different surfaces. Per ADR-004 component-bloat guardrails, two components ≥ 70% overlap collapse into one with a prop. The result: Banner with tone={announcement | warning | error | information}.

Existing AlertBanner shape (frozen)

For reference while migrating. New code should not use this component.

PropTypeDefault
titleReactNode (required)
descriptionReactNode
variant'warning' | 'error' | 'information''information'
actionReactNode

On this page