Components组件Base UIBase UI 组件
Progress
Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Partially translated: Chinese navigation, titles, descriptions, and common headings. The technical body is currently in English.
Loading JGuang UI example…
Installation
Command
Manual
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
Install the following dependencies:
npm install @base-ui/react
Copy and paste the following code into your project.
View complete source: components/ui/progress.tsx
Update the import paths to match your project setup.
Usage
import { Progress } from "@/components/ui/progress"
<Progress value={33} />
Composition
With label and value
Use ProgressLabel and ProgressValue to add a label and value display.
import {
Progress,
ProgressLabel,
ProgressValue,
} from "@/components/ui/progress"
;<Progress value={56} className="w-full max-w-sm">
<ProgressLabel>Upload progress</ProgressLabel>
<ProgressValue />
</Progress>
Progress
├── ProgressLabel
├── ProgressValue
└── ProgressTrack
└── ProgressIndicator
Label
Use ProgressLabel and ProgressValue to add a label and value display.
Loading JGuang UI example…
Controlled
A progress bar that can be controlled by a slider.
Loading JGuang UI example…
RTL
To enable RTL support in JGuang UI, see the RTL configuration guide.
Loading JGuang UI example…
API Reference
See the Base UI Progress documentation.
Source: components/base/progress.mdx
Technical documentation for JGuang UI.