Progress
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Examples
Basic
Prop | Default | Type | Description |
---|---|---|---|
modelValue | - | number | The progress value. Can be bind as v-model . |
max | 100 | number | The maximum progress value. |
indeterminate | false | boolean | Makes the progress bar indeterminate. When true, the progress bar will animate without a specific value. |
getValueLabel | ${Math.round((value / max) * DEFAULT_MAX)}% | ((value: number, max: number) => string) | A function to get the accessible label text representing the current value in a human-readable format. If not provided, the value label will be read as the numeric value as a percentage of the max value. |
Read more in Radix Progress Root API.
Color
Prop | Default | Type | Description |
---|---|---|---|
progress | primary | string | Sets the color of the progress bar. |
Size
Prop | Default | Type | Description |
---|---|---|---|
size | md | string | Sets the size of the progress bar. |
Customization
Configure the progress using the una
prop and utility classes.
Slots
Name | Props | Description |
---|---|---|
default | - | The progress indicator. |
Presets
shortcuts/progress.ts
Props
types/progress.ts