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

Density falls back to an ancestor DensityScope, then Comfortable. See the Density guide.

  • 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