Progress
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Loading...
Features
- Provides context for assistive technology to read the progress of a task.
Installation
Get started with importing the directive:
API Reference
Root
RdxProgressRootDirective
Prop | Default | Type |
---|---|---|
value | 0 | number The current value of the progress bar. |
max | 100 | number The maximum value of the progress bar. |
valueLabel | — | (value: number, max: number) => string Function to generate the value label. |
Data Attribute | Value |
---|---|
[data-state] | "complete" | "indeterminate" | "loading" |
[data-value] | The current value |
[data-max] | The max value |
Indicator
RdxProgressIndicatorDirective
Used to show the progress visually. It also makes progress accessible to assistive technologies.
Data Attribute | Value |
---|---|
[data-state] | "complete" | "indeterminate" | "loading" |
[data-value] | The current value |
[data-max] | The max value |