examples/progress-linear.tsx
import { Progress } from "@/components/wensity/progress";export function LinearProgress() {return <Progress value={48} label="Upload" showValue tone="brand" />;}
Progress indicators in linear, circular, segmented, indeterminate, and stacked forms for uploads and onboarding.
Practical examples and common states for the same installable component.
Standard progress bar with animated value changes.
import { Progress } from "@/components/wensity/progress";export function LinearProgress() {return <Progress value={48} label="Upload" showValue tone="brand" />;}
Compact radial progress for cards and metric tiles.
Multi-step progress for checkout or onboarding flows.
Loading animation when completion is unknown.
import { Progress } from "@/components/wensity/progress";export function IndeterminateProgress() {return <Progress indeterminate label="Syncing workspace" tone="brand" />;}
Multiple values in one capacity bar with legend.
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 0 | Current progress, measured against max. |
max | number | 100 | Value that counts as complete. |
size | "sm" | "md" | "lg" | "md" | Track thickness. |
tone | "neutral" | "brand" | "success" | "warning" | "danger" | "brand" | Colour of the filled track. |
label | string | "Progress" | Accessible label for the progress bar. |
showValue | boolean | false | Shows the numeric percentage beside the track. |
indeterminate | boolean | false | Runs a looping animation for work of unknown duration. |