# 进度条 · JGuang UI

> 展示任务完成比例或不确定的处理状态。

- 页面: https://jiguang132.com/zh/systems/jguang-ui/docs/components/base/progress
- 改编自: shadcn/ui 文档 (MIT) @ bc0705384b51252af26dcc65425b216bf5eb063c
- 说明：正文保留英文原文。

> 示例 `progress-demo`: 交互预览见 https://jiguang132.com/zh/systems/jguang-ui/docs/components/base/progress


## Installation


  

**Command**


  

**Manual**


```text
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
```


### Install the following dependencies:


```bash
npm install @base-ui/react
```


### Copy and paste the following code into your project.


[View complete source: components/ui/progress.tsx](/r/jguang-ui/base/progress.json)


### Update the import paths to match your project setup.


## Usage

```tsx showLineNumbers
import { Progress } from "@/components/ui/progress"
```

```tsx showLineNumbers
<Progress value={33} />
```

## Composition

### With label and value

Use `ProgressLabel` and `ProgressValue` to add a label and value display.

```tsx showLineNumbers
import {
  Progress,
  ProgressLabel,
  ProgressValue,
} from "@/components/ui/progress"

;<Progress value={56} className="w-full max-w-sm">
  <ProgressLabel>Upload progress</ProgressLabel>
  <ProgressValue />
</Progress>
```

```text
Progress
├── ProgressLabel
├── ProgressValue
└── ProgressTrack
    └── ProgressIndicator
```

## Label

Use `ProgressLabel` and `ProgressValue` to add a label and value display.


> 示例 `progress-label`: 交互预览见 https://jiguang132.com/zh/systems/jguang-ui/docs/components/base/progress


## Controlled

A progress bar that can be controlled by a slider.


> 示例 `progress-controlled`: 交互预览见 https://jiguang132.com/zh/systems/jguang-ui/docs/components/base/progress


## RTL

To enable RTL support in JGuang UI, see the [RTL configuration guide](/systems/jguang-ui/docs/rtl).


> 示例 `progress-rtl`: 交互预览见 https://jiguang132.com/zh/systems/jguang-ui/docs/components/base/progress


## API Reference

See the [Base UI Progress](https://base-ui.com/react/components/progress#api-reference) documentation.

---

JGuang 全部资源索引: https://jiguang132.com/llms.txt
