Wave/Wave/Components/CategoryBadgeComponent.razor

14 lines
380 B
Plaintext

@using Wave.Utilities
@using Wave.Data
<span class="badge badge-@CategoryUtilities.GetCssClassPostfixForColor(Category.Color)" @attributes="AdditionalAttributes">
@Category.Name
</span>
@code {
[Parameter]
public required Category Category { get; set; }
[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object>? AdditionalAttributes { get; set; }
}