Alert Banner
A production-scale, light + dark Alert Banner component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add alert-bannerLive preview available in the gallery.
Usage
import { AlertBanner } from "@lerpa/ui";
<AlertBanner />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | AlertTone | — | |
| title | string | — | |
| description | string | — | |
| actionLabel | string | — | |
| dismissible | boolean | — | |
| onAction | () => void | — | |
| onDismiss | () => void | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.