Alert
moleculeFull-width contextual message for info, success, warning, and error states. Supports an optional title and a dismissible variant.
Variants
Info, success, warning, and danger.
Body only
No title — message only.
Dismissible
A close button hides the alert.
Usage
Installation
API Reference
Alert props — * required
| Prop | Type | Default | Description |
|---|---|---|---|
variant* | "info" | "success" | "warning" | "danger" | — | Semantic colour variant. |
title | string | — | Bold heading above the message body. |
onDismiss | () => void | — | If provided, renders a close button. |
children* | React.ReactNode | — | Alert message body. |