Alert

Alert

Displays a callout for important messages that attract user attention.

Basic

A simple alert with an icon, title, and description.

Variants

Seven semantic variants for different message types.

With Accent Border

Use AccentBorder="true" to display a thick left border with a subtle tinted background.

Without Icons

Alerts can be used without icons for simpler messages.

Accessibility

The Alert component uses the ARIA role="alert" attribute to announce important messages to screen readers.

API Reference

Component parameters and their types.

Prop Type Default Description
Variant AlertVariant Default Visual style variant. Options: Default, Muted, Destructive, Success, Info, Warning, Danger.
AccentBorder bool false When true, displays a thick left border in the variant's accent color with a subtle tinted background.
Icon RenderFragment? Optional icon slot rendered to the left of the content.
ChildContent RenderFragment? Alert body. Nest AlertTitle and AlertDescription here.
Class string? Additional CSS classes appended to the root element.

Reconnecting...

Attempting to rejoin the server

Connection Lost

Retrying in seconds

Connection Failed

Failed to rejoin the server.
Please retry or reload the page.

Session Paused

The session has been paused by the server

Resume Failed

Failed to resume the session.
Please reload the page.