Enum MessageSeverity
Specifies the type of severity to display the message with distinctive icons and colors in the SfMessage component.
Namespace: Syncfusion.Blazor.Notifications
Assembly: Syncfusion.Blazor.dll
Syntax
public enum MessageSeverity
Remarks
The MessageSeverity enumeration provides predefined severity levels that control the visual appearance of messages. Each severity level is associated with specific icons, colors, and styling to effectively communicate the message context to users.
Examples
Using different message severities in an SfMessage component.
<SfMessage Severity="MessageSeverity.Success" Content="Operation completed successfully!" />
<SfMessage Severity="MessageSeverity.Error" Content="An error occurred during processing." />
<SfMessage Severity="MessageSeverity.Warning" Content="Please review the following items." />
Fields
| Name | Description |
|---|---|
| Error | The message is displayed with icons and colors to denote it as an error message. |
| Info | The message is displayed with icons and colors to denote it as informational content. |
| Normal | The message is displayed with icons and colors for the normal severity level. |
| Success | The message is displayed with icons and colors for the success severity level. |
| Warning | The message is displayed with icons and colors to denote it as a warning message. |