Skip to content

Progress 进度条

Display · Display component

Progress feedback.

On-demand importwbbb-ui/components/progress

Basic Usage

Example code
<script setup lang="ts">
import { WbbbProgress } from 'wbbb-ui/components/progress'
import 'wbbb-ui/styles/progress'
</script>

<template>
  <WbbbProgress />
</template>
Live mobile previewOpen in a new tab ↗

States and Interaction

All listed states can be operated and verified in the live Playground preview.

DefaultPrimarySuccessWarningDangerInfo

API Reference

Props

PropertyDescriptionTypeDefaultRequired
colorSets the primary display color.string''No
percentageSets the progress percentage to display.number0No
showTextControls whether accompanying text is displayed.booleantrueNo
statusSets the semantic status used for display.WbbbStatus'default'No
strokeWidthSets the thickness of the progress stroke.number12No

Events

None

Slots

None

Two-way binding

Does not support v-model.

Platform Notes

Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.

Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.

Usage note: Use Playground to verify further state combinations and cross-platform behavior.

Wbbb UI · Built for uni-app product experiences