Patterns

Progress

Bar, gradient (with sheen), striped (moving), segmented (steps), indeterminate; and a ring with the number inside.

64%
92%
72%
45%
64%
82%
✓

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
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
PropTypeDefaultDescription
valuenumber—0–100; undefined = indeterminate.
toneTone"info"
classNamestring—
labelstring—
variant"bar" | "gradient" | "striped" | "segmented""bar"
sizekeyof typeof heights"sm"
segmentsnumber5
showValuebooleanfalse

<ProgressRing>

src/components/ui/progress.tsx
PropTypeDefaultDescription
valuerequirednumber—
sizenumber64
thicknessnumber6
toneTone"info"
gradientbooleanfalseDraw the arc in the brand gradient instead of the tone.
labelstring—
childrenReact.ReactNode—
classNamestring—

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