Progress
Server ComponentDeterminate progress bar.
Import
tsx
import { Progress } from "@cronus-ui/ui";
bash
npx cronus-ui add progress
Examples
.cronus
The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.
half.cronus
app "audit-fixtures" {
port 5176
}
style {
preset aurora
theme dark
}
component ProgressHalf layout:inline style:progress {
value:50
aria-label:"Upload progress"
label "Upload progress"
}
page "/audit/progress/half" type:custom {
use ProgressHalf
}
API Reference
Generated from the component's exported types.
ProgressProps
Extends ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | null | — | Current progress. `null` for indeterminate. |
max | number | 100 | — |
asChild | boolean | — | Render as the child element via Slot. |