Form | ProgressBar
ProgressBar#
Description#
- Progress bar with full ARIA (
role="progressbar"and its value attributes). Withvalueasnullit shows a full-width indeterminate state. Optionally adds a row with label and percentage.
Props#
value(number | null) — From 0 to 100.nullfor indeterminate. Required.label(string) — What is progressing. Read by screen readers. Required.tone('normal'|'warning'|'critical') — The stripe color, for bars measuring a level. Default:'normal'.size('xs'|'sm'|'md') — Bar height. Default:md.showValue(boolean) — The row above with label and percentage. Default:false.decimals(number) — Decimal digits of the percentage. Default:0.
Usage#
| |
Notes#
- With
valueasnullthe bar displays indeterminate at full width: a short band reads as a false percentage. - The percentage only shows with
showValueand when the value is determinate. - The value is automatically clamped between 0 and 100.