Class RadzenBadge
RadzenBadge component.
Implements
IDisposable
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenBadge : RadzenComponent, IDisposable
Examples
<RadzenBadge BadgeStyle="BadgeStyle.Primary" Text="Primary" />
Properties
BadgeStyle
Gets or sets the badge style.
Declaration
public BadgeStyle BadgeStyle { get; set; }
Property Value
Type | Description |
---|---|
BadgeStyle | The badge style. |
ChildContent
Gets or sets the child content.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The child content. |
IsPill
Gets or sets a value indicating whether this instance is pill.
Declaration
public bool IsPill { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Shade
Gets or sets the badge shade color.
Declaration
public Shade Shade { get; set; }
Property Value
Type | Description |
---|---|
Shade | The badge shade color. |
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The text. |
Variant
Gets or sets the badge variant.
Declaration
public Variant Variant { get; set; }
Property Value
Type | Description |
---|---|
Variant | The badge variant. |
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
IDisposable