Patterns
Progress
Bar, gradient (with sheen), striped (moving), segmented (steps), indeterminate; and a ring with the number inside.
"use client";
import { Progress, ProgressRing } from "@waveinno/ui";
export default function ProgressExample() {
return (
<div className="grid gap-6 lg:grid-cols-[1fr_auto]">
<div className="max-w-xl space-y-4">
<Progress value={64} label="Profile complete" showValue />
<Progress value={92} tone="danger" size="md" label="Capacity" showValue />
<Progress value={72} variant="gradient" size="md" label="Onboarding" showValue />
<Progress value={45} variant="striped" tone="success" size="lg" label="Uploading" showValue />
<Progress value={60} variant="segmented" segments={5} size="md" label="Setup, step 3 of 5" />
<Progress label="Syncing" />
</div>
<div className="flex items-center gap-5">
<ProgressRing value={64} gradient size={84} label="Profile" />
<ProgressRing value={82} tone="warning" size={64} label="Occupancy" />
<ProgressRing value={100} tone="success" size={48} thickness={5} label="Done">
✓
</ProgressRing>
</div>
</div>
);
}Examples#
Each one on its own: copy its code into your app, or copy it to Figma and paste it on the canvas as layers.
Bar
With a label and the number: how far along something is.
"use client";
import { Progress } from "@waveinno/ui";
export default function ProgressBarExample() {
return (
<div className="w-full max-w-md"><Progress value={64} label="Profile complete" showValue /></div>
);
}Tones and sizes
Danger when it is nearly full, success when it is done; three heights.
"use client";
import { Progress } from "@waveinno/ui";
export default function ProgressTonesExample() {
return (
<div className="w-full max-w-md space-y-4">
<Progress value={92} tone="danger" size="sm" label="Capacity" showValue />
<Progress value={58} tone="warning" size="md" label="Storage" showValue />
<Progress value={100} tone="success" size="lg" label="Backup" showValue />
</div>
);
}Gradient
In the brand gradient, with a light that crosses it: for onboarding.
"use client";
import { Progress } from "@waveinno/ui";
export default function ProgressGradientExample() {
return (
<div className="w-full max-w-md"><Progress value={72} variant="gradient" size="md" label="Onboarding" showValue /></div>
);
}Striped
Moving stripes: something is working on it now.
"use client";
import { Progress } from "@waveinno/ui";
export default function ProgressStripedExample() {
return (
<div className="w-full max-w-md"><Progress value={45} variant="striped" tone="success" size="lg" label="Uploading" showValue /></div>
);
}Segmented
Steps of a set-up, one block each.
"use client";
import { Progress } from "@waveinno/ui";
export default function ProgressSegmentedExample() {
return (
<div className="w-full max-w-md"><Progress value={60} variant="segmented" segments={5} size="md" label="Setup, step 3 of 5" /></div>
);
}Indeterminate
When it is not known how long it will take.
"use client";
import { Progress } from "@waveinno/ui";
export default function ProgressIndeterminateExample() {
return (
<div className="w-full max-w-md"><Progress label="Syncing" /></div>
);
}Ring
The number in the middle: for dashboards and profiles.
"use client";
import { ProgressRing } from "@waveinno/ui";
export default function ProgressRingExample() {
return (
<div className="flex items-center gap-5">
<ProgressRing value={64} gradient size={84} label="Profile" />
<ProgressRing value={82} tone="warning" size={64} label="Occupancy" />
<ProgressRing value={100} tone="success" size={48} thickness={5} label="Done">
✓
</ProgressRing>
</div>
);
}Animated#
Motion that earns its place: free ones to copy now, and Pro ones whose code and Figma copy come with a Wavi Pro licence. They respect the visitor's reduced-motion setting.
Fills as it goesFree
Fills to its value when shown, smoothly; press replay to watch again.
"use client";
import { Button, Progress } from "@waveinno/ui";
import * as React from "react";
export default function ProgressFillExample() {
const [run, setRun] = React.useState(0);
const [value, setValue] = React.useState(0);
React.useEffect(() => {
setValue(0);
const t = window.setTimeout(() => setValue(78), 60);
return () => window.clearTimeout(t);
}, [run]);
return (
<div className="w-full max-w-md space-y-3">
<Progress value={value} variant="gradient" size="md" label="Setting up Gulshan" showValue />
<Button size="sm" variant="ghost" onClick={() => setRun((r) => r + 1)}>
Replay
</Button>
</div>
);
}Upload queue Pro
Each file fills in turn and ticks off, then the heading says they are all in.
Uploading 3 files
- 0%gulshan-october.csv2.4 MB
- 0%banani-plates.xlsx860 KB
- 0%receipts-q3.pdf5.1 MB
This example's code comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
Import#
Everything comes from the package root. The example above uses:
import { Progress, ProgressRing } from "@waveinno/ui";Props#
Read from the source of this version, so they match the code exactly.
<Progress>
src/components/ui/progress.tsx| Prop | Type | Default | Description |
|---|---|---|---|
value | number | — | 0–100; undefined = indeterminate. |
tone | Tone | "info" | |
className | string | — | |
label | string | — | |
variant | "bar" | "gradient" | "striped" | "segmented" | "bar" | |
size | keyof typeof heights | "sm" | |
segments | number | 5 | |
showValue | boolean | false |
<ProgressRing>
src/components/ui/progress.tsx| Prop | Type | Default | Description |
|---|---|---|---|
valuerequired | number | — | |
size | number | 64 | |
thickness | number | 6 | |
tone | Tone | "info" | |
gradient | boolean | false | Draw the arc in the brand gradient instead of the tone. |
label | string | — | |
children | React.ReactNode | — | |
className | string | — |
Install#
If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.
$ npm install @waveinno/ui