Lumeo

Alert

Displays a callout for important messages and feedback.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Alert />

When to Use

  • Display important messages that require user attention inline on the page
  • Show status notifications such as success, warning, or error feedback
  • Communicate system-wide announcements or feature changes
  • Provide contextual warnings before a destructive or irreversible action
  • Surface validation errors or informational tips within a form

Pick a variant to see it applied live.

Pick a size to see it applied live.

Keyboard Interactions

Key Action
EscapeDismiss the alert when it is dismissible
TabMove focus to action buttons or the dismiss button inside the alert
EnterActivate the focused action or dismiss button

Parameter Coverage

Every AlertVariant value plus the icon-toggle bool demoed live.

AlertVariant

Default
Destructive
Success
Warning
Info

ShowIcon

ShowIcon = false

ShowIcon = true

IsDismissible

IsDismissible = false

IsDismissible = true

API Reference

Alert

Property Type Default Description
Variant AlertVariant Default Visual style of the alert. Values: Default, Destructive, Success, Warning, Info.
IsDismissible bool false When true, renders a close button inside the alert.
OnDismiss EventCallback Callback invoked when the dismiss button is clicked.
Titlestring?nullOptional heading text. Can also be provided via the AlertTitle child.
Descriptionstring?nullOptional body text. Can also be provided via the AlertDescription child.
ShowIconbooltrueWhether to render the leading icon for the variant.
IconContentRenderFragment?nullCustom icon slot that overrides the default variant icon.
AutoDismissMsint?nullWhen set, the alert dismisses itself after this many milliseconds.
SizeAlertSizeMediumControls padding and text size. Values: Small, Medium, Large.
ChildContentRenderFragment?nullCustom content rendered inside the alert body.
  • Toast — Use for transient notifications that auto-dismiss, rather than persistent inline alerts
  • Dialog — Use when the message requires explicit user acknowledgement or a decision
  • Badge — Use for small inline status labels rather than full callout blocks