Alert
Status: Experimental
Alert presents persistent contextual feedback with visible meaning beyond color. It does not force role="alert", because server-rendered or already-present guidance should not be announced as a new interruption.
Preview
Section titled “Preview”Review account details
Confirm the billing contact before sending the next invoice.
Changes saved
Workspace access rules now apply to all new members.
Payment requires attention
The current card expires this month.
---import { Alert } from '@freightpx/frasto';---
<Alert title="Review account details" tone="info"> Confirm the billing contact before sending the next invoice.</Alert>| Prop | Type | Default | Purpose |
|---|---|---|---|
tone |
"neutral" | "info" | "positive" | "warning" | "danger" |
"neutral" |
semantic visual treatment |
title |
string |
— | concise visible message heading |
class |
string |
— | styles the root |
Native div attributes pass through. The optional icon slot accepts a visual; decorative icons must be hidden from assistive technology. The default slot supplies message content and may include links or relevant actions.
Choose a live-region role only when the application inserts a time-sensitive message dynamically. Alert has no built-in dismissal or persistence state.

