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.
Run the following command
pnpm dlx wensity@latest add progress
Import Progress from @/components/wensity/progress and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.
import { Progress } from "@/components/wensity/progress";export function ProgressDemo() {return <Progress value={62} showValue label="Deployment" tone="brand" />;}
| 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. |