Progress
Progress shows how far along a task is, such as an upload or a multi-step form. Leave out value for an animated bar while the total is unknown. Always give it an aria-label or aria-labelledby.
Installation
Run npx nxds-cli@latest init first if nxds isn’t set up in your app yet. See Install.
Usage
Examples
Indeterminate
Leave out value to show a sweeping bar while the total is unknown.
All variants
Fill the bar at 0, 25, 50, 75 and 100 percent.
Props
Progress
Progress adds no props of its own; it accepts the props of the element or primitive it wraps.
Progress shows how far along a task is, such as an upload or a multi-step form. Leave out model-value for an animated bar while the total is unknown. Always give it an aria-label or aria-labelledby.
Installation
Install the following dependencies:
Copy and paste the following code into your project.
components/progress/Progress.vue components/progress/index.ts components/progress/progress.css Import the styles in your global stylesheet:
Keep each file at the path shown above it.
Paths are relative to
packages/vue/src/. Keep the same folders under your@/root, and the imports between files work without edits.
Usage
Examples
Indeterminate
Leave out model-value to show a sweeping bar while the total is unknown.
All variants
Fill the bar at 0, 25, 50, 75 and 100 percent.
Props
Progress
Progress adds no props of its own; it accepts the props of the element or primitive it wraps.