Badge

Badges are used to inform users of the status of an object or of an action that’s been taken. Use badges to label, categorize, or organize items using keywords that describe them.

Icon

Icon define the name of the Icon to display in the badge.

TypeDefault Value
Stringnull
<NVBadge Icon="sun" />

OnCloseClick

EventCallback called when close button is clicked.
The close button will be displayed when the callback is defined.

TypeDefault Value
EventCallback<MouseEventArgs>null
Label
<NVBadge OnCloseClick="@OnCloseClick" Color="primary">badge</NVBadge>

@code {
  public void OnCloseClick()
  {
    Console.WriteLine("Badge -> OnCloseClick");
  }
}
On this page