Properties
Name | Type | Default | Description |
---|---|---|---|
Behavior | |||
ChildContent |
RenderFragment |
null | Child content of component, the content that the badge will apply to. |
Content |
object |
null | Content you want inside the badge. Supported types are string and integer. |
Dot |
bool |
False | Reduces the size of the badge and hide any of its content. |
Icon |
string |
null | Sets the Icon to use in the badge. |
Max |
int |
99 | Max value to show when content is integer type. |
Visible |
bool |
True | The visibility of the badge. |
Appearance | |||
BadgeClass |
string |
null | Badge class names, separated by space. |
Bordered |
bool |
False | Applies a border around the badge. |
Color |
Color |
Color.Default | The color of the badge. |
Elevation |
int |
0 | The higher the number, the heavier the drop-shadow. |
Origin |
Origin |
Origin.TopRight | The placement of the badge. |
Overlap |
bool |
False | Overlaps the childcontent on top of the content. |
Common | |||
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. |