You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Progress/ProgressLinear.razor

30 lines
1.0 KiB

@namespace Connected.Components
@using Connected.Extensions;
@inherits UIComponent
<div @attributes="UserAttributes" class="@DivClassname" style="@Style" role="progressbar" aria-valuenow="@_value.ToInvariantString()" aria-valuemin="@_min.ToInvariantString()" aria-valuemax="@_max.ToInvariantString()">
<div class="mud-progress-linear-bars">
@if (Indeterminate)
{
<div class="mud-progress-linear-bar"></div>
<div class="mud-progress-linear-bar"></div>
}
else if (Buffer)
{
<div class="mud-progress-linear-bar"></div>
<div class="mud-progress-linear-bar" style="@GetStyledBar1Transform()"></div>
<div class="mud-progress-linear-bar last" style="@GetStyledBar2Transform()"></div>
}
else
{
<div class="mud-progress-linear-bar" style="@GetStyledBar1Transform()"></div>
}
</div>
@if(ChildContent != null)
{
<div class="mud-progress-linear-content">
@ChildContent
</div>
}
</div>