Feedback
Progress
Determinate linear progress bar.
import { Progress } from "datui";Playground
<Progress value={40} appearance="accent" height={4} aria-label="Progress" />Examples
Values and colors
Accessibility
- Radix progress semantics:
role="progressbar"witharia-valuenow,aria-valuemin=0,aria-valuemax=100. - Values are clamped to 0–100.
- Label it with
aria-labeloraria-labelledby.
API
Progress
Determinate linear progress bar (`role="progressbar"`). Label it with `aria-label` or `aria-labelledby`.
| Prop | Type | Default | Description |
|---|---|---|---|
| appearance | (string & {}) | "accent" | "negative" | "positive" | accent | Named intent or any CSS color (`#rrggbb`, `var(--x)`). |
| className | string | — | |
| height | number | 4 | Bar height in px. |
| noTrack | boolean | — | Transparent track. |
| value | number | 0 | 0–100; clamped. |