Feedback
Alert
Inline, persistent message attached to the content it concerns.
Alert
import { Alert } from '@anomalia/ui'; Notes
- Transient messages belong in a Toast; an Alert stays until the situation changes.
Examples
Tones
Alerts stay until the situation changes. Anything transient belongs in a Toast.
Connect a channel
Anomalia needs at least one connected account before it can schedule anything.
Plan produced
Twelve posts are waiting for your review.
Token expiring
Your Instagram token expires in three days.
Publish failed
The channel rejected the last upload. Nothing was posted.
API
| Prop | Type | Default | Description |
|---|---|---|---|
tone | 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info' | 'info' | Colour and ARIA role (`danger` → `alert`). |
title | string | — | Bold first line. |
ondismiss | () => void | — | Shows the ✕. |
icon / actions | Snippet | — | Leading glyph and action row. |
Every component also forwards the native attributes of its root element, plus class, so anything not listed here still works.