MudBlazor

MudBadge API

Pages

Properties

Name Type Default Description
BadgeClass
String

null

Badge class names, separated by space.
Bordered
Boolean

False

Applies a border around the badge.
ChildContent
RenderFragment

null

Child content of component, the content that the badge will apply to.
Color
Color

Color.Default

The color of the badge.
Content
Object

null

Content you want inside the badge. Supported types are string and integer.
Dot
Boolean

False

Reduces the size of the badge and hide any of its content.
Elevation
Int32

0

The higher the number, the heavier the drop-shadow.
Icon
String

null

Sets the Icon to use in the badge.
Max
Int32

99

Max value to show when content is integer type.
Origin
Origin

Origin.TopRight

The placement of the badge.
Overlap
Boolean

False

Overlaps the childcontent on top of the content.
Visible
Boolean

True

The visibility of the badge.
Inherited from MudComponentBase
Class
String

null

User class names, separated by space.
Style
String

null

User styles, applied on top of the component's own classes and styles.
Tag
Object

null

Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<String, Object>

UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.

EventCallbacks

Name Type Description
OnClick
EventCallback<MouseEventArgs>
Button click event if set.
An error has occurred. This application may no longer respond until reloaded. Reload 🗙