SusProgressLinear

Horizontal bar progress — determinate, buffer, striped, or indeterminate.
Package
SusKit · Atoms (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Value | Prop<float> | 0f | |
Max | Prop<float> | 100f | |
Height | Prop<float> | 4f | |
Color | Prop<string> | "primary" | |
BgColor | Prop<string> | "" | |
BgOpacity | Prop<float> | 1f | |
BufferValue | Prop<float> | 0f | |
Indeterminate | Prop<bool> | false | |
Active | Prop<bool> | true | |
Striped | Prop<bool> | false | |
Stream | Prop<bool> | false | |
Reverse | Prop<bool> | false | |
Absolute | Prop<bool> | false | |
Clickable | Prop<bool> | false | |
Rounded | Prop<string> | "md" | |
RoundedBar | Prop<bool> | false | |
ChunkCount | Prop<int> | 0 | |
ChunkGap | Prop<float> | 4f |
Slots
| Name |
|---|
(default) |
Events
| Name | Field | Payload |
|---|---|---|
ValueChanged | OnValueChanged | float |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-progress-linearsus-progress-linear__backgroundsus-progress-linear__buffersus-progress-linear__chunksus-progress-linear__chunk-fillsus-progress-linear__chunkssus-progress-linear__contentsus-progress-linear__fillsus-progress-linear__indeterminatesus-progress-linear__indeterminate-barsus-progress-linear__streamsus-progress-linear--absolutesus-progress-linear--activesus-progress-linear--chunkedsus-progress-linear--clickablesus-progress-linear--color-dangersus-progress-linear--color-infosus-progress-linear--color-secondarysus-progress-linear--color-successsus-progress-linear--color-warningsus-progress-linear--inactivesus-progress-linear--indeterminatesus-progress-linear--reversesus-progress-linear--rounded-barsus-progress-linear--streamsus-progress-linear--striped
Usage
xml
<template>
<sus:SusProgressLinear :Value="LoadPct.Value"
Max="100"
Color="primary"
Height="6"
Rounded="md" />
</template>
<script>
public Prop<float> LoadPct = new(65f);
</script>csharp
var bar = new SusProgressLinear();
bar.Value.Value = 40f;
bar.BufferValue.Value = 70f;
bar.Color.Value = "success";
bar.Striped.Value = true;
// Indeterminate: bar.Indeterminate.Value = true;Notes
BufferValuedraws a secondary track (e.g. buffered media).ChunkCount/ChunkGapsplit the fill into segments.- Default slot sits over the bar for an inline label.