alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Enum MessageVariant

    Specifies the predefined appearance variants for the SfMessage component to control the visual presentation style.

    Namespace: Syncfusion.Blazor.Notifications
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public enum MessageVariant
    Remarks

    The MessageVariant enumeration provides different styling options that work in conjunction with MessageSeverity to create various visual presentations. Each variant offers a distinct way to display the severity-based colors and styling.

    Examples

    Using different message variants with severity levels.

    <SfMessage Severity="MessageSeverity.Success" Variant="MessageVariant.Filled" Content="Filled success message" />
    <SfMessage Severity="MessageSeverity.Warning" Variant="MessageVariant.Outlined" Content="Outlined warning message" />
    <SfMessage Severity="MessageSeverity.Info" Variant="MessageVariant.Text" Content="Text-only info message" />

    Fields

    Name Description
    Filled

    The MessageSeverity is differentiated using text color and dark background colors.

    Outlined

    The MessageSeverity is differentiated using text color and border styling without background color.

    Text

    The MessageSeverity is differentiated using text color and light background colors.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved