41 lines
1001 B
Plaintext
41 lines
1001 B
Plaintext
@* Reusable status chip with colored icon + text. *@
|
|
|
|
<MudChip T="string" Size="@Size" Color="@Color" Class="@Class">
|
|
<MudIcon Icon="@Icon" Size="Size.Small" Class="mr-1" />
|
|
@Text
|
|
</MudChip>
|
|
|
|
@code {
|
|
|
|
/// <summary>
|
|
/// Display text shown alongside the icon.
|
|
/// </summary>
|
|
[Parameter]
|
|
public string Text { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// MudBlazor color for the chip and icon.
|
|
/// </summary>
|
|
[Parameter]
|
|
public Color Color { get; set; } = Color.Default;
|
|
|
|
/// <summary>
|
|
/// Material icon name displayed before the text.
|
|
/// </summary>
|
|
[Parameter]
|
|
public string Icon { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Chip size. Defaults to <see cref="Size.Small"/>.
|
|
/// </summary>
|
|
[Parameter]
|
|
public Size Size { get; set; } = Size.Small;
|
|
|
|
/// <summary>
|
|
/// Additional CSS classes applied to the chip.
|
|
/// </summary>
|
|
[Parameter]
|
|
public string Class { get; set; } = string.Empty;
|
|
|
|
}
|