Skip to content

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.

API

PropTypeDefaultDescription
tone'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info''info'Colour and ARIA role (`danger` → `alert`).
titlestringBold first line.
ondismiss() => voidShows the ✕.
icon / actionsSnippetLeading glyph and action row.

Every component also forwards the native attributes of its root element, plus class, so anything not listed here still works.