Skip to content

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 progress

Imports ​

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 ​

PropTypeDefaultDescription
valuenumber-Current progress value.
maxnumber100Maximum progress value.
indeterminateboolean-Whether progress is indeterminate.
labelstring-Accessible progress label.

Events ​

No public events documented.

Slots ​

SlotDescription
defaultOptional content.

Styling ​

Uses Tailwind: yes

Theme tokens:

  • bg-primary
  • bg-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:

  • cn
  • globals

Files:

  • templates/react/progress.tsx → components/ui/progress.tsx
  • templates/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" />
}

Released under the MIT License.