UIProgress
UIProgress
A progress indicator component for displaying completion status.
<template> <UIProgress :percentage="progress" :status="status" :strokeWidth="8" :showInfo="true" > <template #format="{ percentage }"> {{ percentage }}% Complete </template> </UIProgress></template>
<script setup lang="ts">const progress = ref(75)const status = computed(() => { if (progress.value === 100) return 'success' if (progress.value < 30) return 'exception' return 'normal'})</script>Props
percentage(number): Progress percentage (0-100)type(‘line’ | ‘circle’ | ‘dashboard’): Progress typestatus(‘success’ | ‘exception’ | ‘normal’): Progress statusstrokeWidth(number): Progress bar widthstrokeColor(string | object): Progress bar colortrailColor(string): Trail colorshowInfo(boolean): Show percentage infowidth(number): Circle/dashboard widthstrokeLinecap(‘round’ | ‘square’): Progress bar end typetextInside(boolean): Show text inside progress bar
Events
update:percentage: Emitted when percentage changes
Slots
format: Custom percentage formatprefix: Content before progress barsuffix: Content after progress bar