782 B
782 B
radial-progress
Radial progress can be used to show the progress of a task or to show the passing of time
Class names
- component:
radial-progress
Syntax
<div class="radial-progress" style="--value:70;" aria-valuenow="70" role="progressbar">70%</div>
Rules
- The
--valueCSS variable and text must be a number between 0 and 100 - you need to add
aria-valuenow={value}androle="progressbar"so screen readers can properly read value and also show that its a progress element to them - Use
divinstead of progress because browsers can't show text inside progress tag - Use
--sizefor setting size (default 5rem) and--thicknessto set how thick the indicator is