Installation
npx logic2b@next add progressUsage
import { Progress } from "@/components/ui/progress"
<Progress value={66} aria-label="Upload progress" />
Examples
Animated
With a label
Uploading…40%
Live playground
Edit the component props and inspect the exact JSX before copying it. The preview loads only when this section enters the viewport.
Generated JSX
<Progress
value={64}
aria-label="Upload progress"
/>API reference
Generated from the public TypeScript exports in src/ui/progress.tsx.
Progress
ComponentProps: React.ComponentProps<typeof ProgressPrimitive.Root>| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
aria-label | string | No | "Progress" | — |
Accessibility contract
Machine-readable behavior and consumer responsibilities for progress.
- Support
- Primitive-managed
- Pattern
- progressbar
- Radix Progress
Built-in semantics
- Exposes progressbar semantics and a default accessible name.
Consumer responsibilities
- Replace the default label with task-specific context; omit value only for indeterminate progress.