Progress
Styled progress component built on the zw-progress primitive.
@zeus-web/progressFeedbackzweb add progressGenerated
Playground
Source
Choose the framework entry that matches your application.
html
<script type="module">
import '@zeus-web/progress/wc/auto'
</script>
<zw-progress value="64" max="100" label="Upload progress"></zw-progress>tsx
import { Progress } from '@zeus-web/progress/react'
export function ProgressExample() {
return <Progress value={64} max={100} label="Upload progress" />
}vue
<script setup lang="ts">
import { Progress } from '@zeus-web/progress/vue'
</script>
<template>
<Progress :value="64" :max="100" label="Upload progress" />
</template>Add
bash
zweb add progressImports
Styled registry component:
tsx
import { Progress } from '@/components/ui/progress'Primitive React wrapper:
tsx
import { Progress } from '@zeus-web/progress/react'Web Component entry:
ts
import '@zeus-web/progress/wc/auto'Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | - | Current progress value. |
max | number | 100 | Maximum progress value. |
indeterminate | boolean | - | Whether progress is indeterminate. |
label | string | - | Accessible progress label. |
Events
No public events documented.
Slots
| Slot | Description |
|---|---|
default | Optional content. |
Styling
Uses Tailwind: yes
Theme tokens:
bg-primarybg-primary/20
Internal selectors:
[data-slot=progress-root][data-slot=progress-indicator]
Registry
Registry source: available.
Add command: zweb add progress
Type: component
Dependencies:
@zeus-web/progress
Registry dependencies:
cnglobals
Files:
templates/react/progress.tsx→components/ui/progress.tsxtemplates/vue/progress.ts→components/ui/progress.ts
AI usage rules
Do:
- Use Progress to represent task completion.
Do not:
- Do not use Progress as a generic loading spinner.
Examples
React styled usage
tsx
import { Progress } from '@/components/ui/progress'
export function Example() {
return <Progress value={60} label="Upload progress" />
}