Alert

The ArcadiaAlert component renders a styled alert message with an icon that matches the severity level.

Basic Usage

<ArcadiaAlert Severity="info" Title="Information">
    This is an informational alert.
</ArcadiaAlert>

<ArcadiaAlert Severity="success">
    Operation completed successfully.
</ArcadiaAlert>

<ArcadiaAlert Severity="warning" Title="Warning" Dismissible="true">
    This alert can be dismissed.
</ArcadiaAlert>

<ArcadiaAlert Severity="error" Variant="outlined">
    Something went wrong.
</ArcadiaAlert>

Parameters

ParameterTypeDefaultDescription
Severitystring"info"Alert severity level: "info", "success", "warning", "error".
Titlestring?nullOptional title text displayed above the message body.
ChildContentRenderFragment?nullThe alert message body content.
DismissibleboolfalseWhether the alert can be dismissed via a close button.
VisiblebooltrueWhether the alert is visible.
Variantstring"filled"Visual variant: "filled", "outlined", "soft".
ActionTemplateRenderFragment?nullOptional action template rendered in the alert actions area.
Classstring?nullAdditional CSS class names.
Stylestring?nullInline CSS styles.

Events

EventTypeDescription
OnDismissEventCallbackFired when the dismiss button is clicked.

Accessibility

  • Uses role="alert" for screen reader announcement.
  • The dismiss button has aria-label="Dismiss alert".
  • Icon SVGs use aria-hidden="true".