Skip to content

Progress ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { Progress } from '@/components/kuro/progress';

const progressValue = ref(45)
</script>

<template>
  <div class="space-y-4">
    <Progress :value="progressValue" />
  </div>
</template>

Installation ​

bash
npx kuro-ui add progress
bash
npx github:Bartek-Nowak/Kuro add progress

Variants ​

The Progress component supports several visual variants. Use the variant prop to customize its appearance.

VariantDescription
determinateBlue tone, default progress bar
successGreen tone indicating success
warningYellow tone indicating warning
errorRed tone indicating error
accentPurple accent color
mutedGray muted color

Props ​

PropTypeDescription
variantstringVisual variant of the progress bar
valuenumberProgress value from 0 to 100
classstringAdditional Tailwind CSS classes (optional)

Usage Example ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { Progress } from '@/components/kuro/progress';

const progressValue = ref(45)
</script>

<template>
  <div class="space-y-4">
    <Progress :value="progressValue" variant="determinate" />
    <Progress :value="progressValue" variant="success" />
    <Progress :value="progressValue" variant="warning" />
    <Progress :value="progressValue" variant="error" />
    <Progress :value="progressValue" variant="accent" />
    <Progress :value="progressValue" variant="muted" />
  </div>
</template>