mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
33 lines
843 B
Plaintext
33 lines
843 B
Plaintext
# Progress
|
|
|
|
A linear progress bar widget used to indicate the completion of a task such as file uploads or loading states.
|
|
|
|
<WidgetExample name="progress-basic" />
|
|
|
|
## Use cases
|
|
|
|
- **Suitable**: file upload/download, installation, or any long-running task that needs progress feedback
|
|
- **Suitable**: form submission or async operations that need a wait indicator
|
|
- **Not suitable**: scenarios that require precise numeric values or indeterminate progress (use `text` to render manually)
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import { Progress, ProgressLabel, ProgressValue } from "@lcui/react"
|
|
```
|
|
|
|
```tsx
|
|
<Progress value={20} />
|
|
```
|
|
|
|
## Examples
|
|
|
|
### With label
|
|
|
|
`Progress` accepts `ProgressLabel` and `ProgressValue` children; the label row is rendered above the track.
|
|
|
|
<WidgetExample name="progress-label" />
|
|
|
|
## API Reference
|
|
|
|
<FieldTable name="progress" /> |