15 lines
515 B
Plaintext
15 lines
515 B
Plaintext
<div @attributes="InputAttributes" class="@CssClass" role="status">
|
|
<span class="visually-hidden">Loading...</span>
|
|
</div>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public string? Size { get; set; }
|
|
|
|
[Parameter(CaptureUnmatchedValues = true)]
|
|
public Dictionary<string, object>? InputAttributes { get; set; }
|
|
|
|
private string CssClass => $"spinner-border {(InputAttributes?.ContainsKey("class") is true ? InputAttributes["class"] : "")} {(string.IsNullOrEmpty(Size) ? null : $"spinner-border-{Size}")}".Trim();
|
|
}
|
|
|