Components
Progress Bar
Alias of Progress for horizontal completion indicators.
Installation
$ npx veil-ui@latest add progress-barUsage
import { ProgressBar } from "@/components/ui/progress-bar";
<ProgressBar value={60} aria-label="Upload progress" />;Examples
Basic
With labels
Uploading assets72%
Importing contacts3 of 5 files
API reference
ProgressBar re-exports Progress. It takes
value from 0 to 100 and all native div attributes.
Accessibility
- Radix Progress exposes
role="progressbar"and the value attributes. - Provide an
aria-labelwhen no visible label describes the task.
Vue and plain HTML
This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add progress-bar --framework vue or switch the framework in components.json.
<script setup lang="ts">
import { Progress } from "@/components/ui/progress";
defineOptions({ inheritAttrs: false });
const props = defineProps<{ class?: string; value?: number | null }>();
</script>
<template>
<Progress :value="value" :class="props.class" v-bind="$attrs" />
</template>