SegmentedProgress
atomsOne bar split into toned segments: per-segment value/max tracks, or a stacked breakdown with an optional legend.
Disk usage breakdown
mode="stacked" sizes slices by value against max; legend="below" lists them; the remainder shows as empty track.
cyberia-media 387 / 512 GB
- Media 212
- Snapshots 96
- Logs 61
- Core dumps 18
Segment mode, sizes, gaps and legends
default mode gives each segment its own value/max track (widths ∝ max); size sm/md/lg; gap spaces them; legend inline, below or a snippet.
- accent 4
- ok 4
- warn 4
- danger 4
- info 4
- neutral 4
- conforming 412
- nonconforming 12
- blocked 3
States
all-empty segments, a single segment, a zero-value slice collapsing in stacked mode, a remainder against max, and many thin segments.
- 3 of 4 3
- passed 40
- failed 0
- done 300
- skipped 120
Props
| Prop | Type | Default | Description |
|---|---|---|---|
segments required | ProgressSegment[] | — | |
label | string | — | |
size | ControlSize | 'md' | Track height. `sm` is a thin ~5px track for inline rows. |
mode | 'segments' | 'stacked' | 'segments' | |
gap | number | string | 2 | Space between segments in `segments` mode; a bare number is px. |
max | number | — | `stacked` only: total the slices are measured against. When Σvalue < max the remainder shows the empty track. |
legend | boolean | 'inline' | 'below' | Snippet<[ProgressSegment[]]> | false | `true` = 'below'. A snippet receives the segments for custom rendering. |
class | string | '' |