Progress Bar is a determinate indicator that informs the user of the percentage of completion of a system operation.
Usage
The preview has been updated.
Accessibility
The component leverages semantic HTML elements like <progress> and <output> to provide inherent accessibility features. However, a consumer must provide an appropriate localized label, ensuring that the progress bar component is usable by all individuals, including those relying on assistive technologies. It can be provided in any of the below-mentioned ways:
1. If thereβs no visible text to describe the progress bar, you can use aria-label
2. Use a <label> tag linked with the ProgressBar, or any other element like span or a div to describe the progress bar via aria-labelledby.
Convenience Component
ProgressBar is a convenient wrapper for several components: ProgressBarContainer, Progress, and ProgressOutput. Core props are forwarded to ProgressBarContainer, and other props are forwarded to Progress.
Using this API, you can create an accessible Progress Bar without a visible text label, for example.
The preview has been updated.