Skip to content

Progress

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

Examples

Default

vue
<script setup>
import { ref, onMounted } from 'vue'
import { Progress } from '@empathyds/vue'

const progress = ref(13)

onMounted(() => {
  const timer = setTimeout(() => (progress.value = 66), 500)
  return () => clearTimeout(timer)
})
</script>

<template>
  <Progress :model-value="progress" class="w-[60%]" />
</template>

Props

Progress

PropTypeDefaultDescription
modelValuenumber0The progress value.
maxnumber100The maximum value.
getValueLabelfunction-A function to get the accessible label text for the current value.

Slots

Progress

SlotDescription
defaultThe content of the progress bar.