Progress Bar
A component that displays an indicator showing the completion progress of a task. Implements the ARIA progressbar pattern to ensure proper accessibility support.
Provides context for assistive technology to read the progress of a task
Architecture
Reference
-
Root
The root container that manages the progress bar's state and behavior. Coordinates the interaction between the indicator and accessibility attributes.
-
Attributes
- aria-labelstring/default: -
Defines an accessible label for the progress bar when a visible label is not present.
- aria-valuetextstring/default: -
Provides a human-readable text alternative that describes the progress value. Useful for conveying more specific progress information to screen readers.
- idstring/default: -
ID that is forwarded to the underlying container for DOM manipulation.
- max-valuenumber/default: -
The maximum value that represents 100% progress. Used to calculate the relative progress percentage.
- valuenumber/default: -
The current progress value. Must be less than or equal to
max-value
.
-
-
-
Indicator
The visual element that represents the current progress. Automatically sizes itself based on the current value relative to the maximum value while maintaining proper ARIA attributes for accessibility.
-
Attributes
- idstring/default: -
ID that is forwarded to the underlying element for DOM manipulation.
-
-