1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2024-12-22 16:42:50 +01:00
Minecraft-Phantom-Panel/Web/Phantom.Web.Components/Graphics/ProgressBar.razor

20 lines
443 B
Plaintext

<div>
<div class="progress-label">@ChildContent</div>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: @(100 * Value / Maximum)%;" aria-valuenow="@Value" aria-valuemin="0" aria-valuemax="@Maximum"></div>
</div>
</div>
@code {
[Parameter]
public long Value { get; set; }
[Parameter]
public long Maximum { get; set; }
[Parameter]
public RenderFragment? ChildContent { get; set; }
}